From: Ben Mansell Date: Fri, 10 Nov 2000 16:14:00 +0000 (+0000) Subject: Further updates to README.Zeus X-Git-Tag: php-4.0.4RC3~246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d48df3339a42e4862cdca45cddbfdc77bfea390;p=php Further updates to README.Zeus # Using LD_RUN_PATH to let the libphp4.so library find other libraries. # Surely there should be a better way, using -rpath? However, libtool # seems to swallow any extra -rpath options given to the compiler. --- diff --git a/README.Zeus b/README.Zeus index 4ff93146a7..603dc7703b 100644 --- a/README.Zeus +++ b/README.Zeus @@ -95,6 +95,13 @@ you should set LD_LIBRARY_PATH to '/usr/local/mysql/lib/mysql' and then 'export LD_LIBRARY_PATH'. For convenience, you should add this to the 'start-zeus' script provided. +Yet another method of ensuring the linked libraries are found is to +set the environment variable LD_RUN_PATH before compiling PHP. This +works in a similar way to LD_LIBRARY_PATH, but at compile-time. +Libraries produced with this envrionment variable set will have its +value 'burned' into the resultant binary, specifying a runtime +search pth to locate other required libraries such as MySQL. + On Linux, you can also tell the dynamic linker where to find the libraries, by adding '/usr/local/mysql/lib/mysql' to the file /etc/ld.so.conf - after editting this file, run 'ldconfig' as root,