[open-ils-commits] r9919 - trunk/Open-ILS/src/extras

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jun 24 14:35:34 EDT 2008


Author: dbs
Date: 2008-06-24 14:35:31 -0400 (Tue, 24 Jun 2008)
New Revision: 9919

Modified:
   trunk/Open-ILS/src/extras/Makefile.install
Log:
Add /usr/local/lib to ldconfig on CentOS/RHEL if not already there;
avoids "missing rpl_malloc" error which is rather difficult to debug


Modified: trunk/Open-ILS/src/extras/Makefile.install
===================================================================
--- trunk/Open-ILS/src/extras/Makefile.install	2008-06-24 15:25:20 UTC (rev 9918)
+++ trunk/Open-ILS/src/extras/Makefile.install	2008-06-24 18:35:31 UTC (rev 9919)
@@ -310,7 +310,7 @@
 # these should be the same for any distro
 install: install_yaz install_cpan install_js_sm install_libdbi 
 
-centos: install_centos_pgsql install_centos_rpms install_ejabberd install_libmemcache install install_libxml2 install_libxslt install_centos_perl 
+centos: install_centos_pgsql install_centos_rpms install_ejabberd install_libmemcache install install_libxml2 install_libxslt install_centos_perl create_ld_local
 
 debian: install_pgsql_debian install_debs install debian_sys_config
 
@@ -444,3 +444,10 @@
 	for m in $(CENTOS_PERL_NOTEST); do perl -MCPAN -e "CPAN::Shell->notest('install', \"$$m\";"; done
 	for m in $(CENTOS_PERL_LOCAL); do LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib perl -MCPAN -e "install \"$$m\";"; done
 
+# We need to add /usr/local/lib to the ldconfig list of directories on CentOS,
+# if it is not already there
+create_ld_local:
+	if [ "$$(ldconfig -v 2> /dev/null | grep '^/usr/local/lib' | wc -l)" -eq 0 ]; then \
+		echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf; \
+		ldconfig; \
+	fi;



More information about the open-ils-commits mailing list