From 6cd9c6353f20cf2e1e1f6ac039c7bc5f8aaeb22e Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 24 Jun 2008 18:35:31 +0000 Subject: [PATCH] Add /usr/local/lib to ldconfig on CentOS/RHEL if not already there; avoids "missing rpl_malloc" error which is rather difficult to debug git-svn-id: svn://svn.open-ils.org/ILS/trunk@9919 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/extras/Makefile.install | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/extras/Makefile.install b/Open-ILS/src/extras/Makefile.install index 345142c9cc..26dd7e6c88 100644 --- a/Open-ILS/src/extras/Makefile.install +++ b/Open-ILS/src/extras/Makefile.install @@ -310,7 +310,7 @@ all: # 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 @@ install_centos_perl: 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; -- 2.43.2