1 # actions required by all debian-based OSs
6 $(APT_TOOL) install $(DEBS)
8 # Install the custom spidermonkey libs and JavaScript-SpiderMonkey Perl modules
9 install_js_sm: install_libjs install_spidermonkey
12 if [ ! -f $(LIBJS).tar.gz ]; then wget $(LIBJS_URL); fi;
13 tar -zxf $(LIBJS).tar.gz
14 cd js/src/ && JS_DIST=/usr make -f Makefile.ref
15 mkdir -p $(JS_INSTALL_PREFIX)/include/js/
16 cp js/src/*.h $(JS_INSTALL_PREFIX)/include/js/
17 cp js/src/*.tbl $(JS_INSTALL_PREFIX)/include/js/
18 cp js/src/Linux_All_DBG.OBJ/*.so $(JS_INSTALL_PREFIX)/lib/
19 cp js/src/Linux_All_DBG.OBJ/*.a $(JS_INSTALL_PREFIX)/lib/
24 if [ ! -f $(LIBJS_PERL).tar.gz ]; then wget $(LIBJS_PERL_URL); fi
25 tar -zxf $(LIBJS_PERL).tar.gz
26 cd $(LIBJS_PERL) && perl Makefile.PL -E4X \
27 && make && make test && make install
29 # On Ubuntu and possibly Debian, the libdbi0 package prevents the
30 # compiled-from-source version from being used and breaks the install.
31 # This package might get installed depending on the install-time choices
32 # for the distro. Test for its existence; if it's there, throw an error
35 @if [ "$$(apt-cache policy libdbi0 | grep Installed | grep none | wc -l)" -eq 0 ]; then \
36 echo "*** Detected locally installed libdbi0 package; you must remove this"; \
37 echo "*** with a command like 'aptitude remove libdbi0' before proceeding"; \
38 echo "*** to successfully install Evergreen."; \
40 echo "*** Note: this may break other applications on your system."; \
45 # link the apache modules in
46 for m in $(DEB_APACHE_MODS); do a2enmod $$m; done;
47 # keep the bad apache modules away
48 for m in $(DEB_APACHE_DISMODS); do a2dismod $$m; done;
49 # refresh the dynamic library cache
53 make -f Makefile.ref -C js/src/ clean