LD_LIBRARY_PATH funktioniert, ld.so.conf/ldconfig nicht
Hallo allerseits,
ich habe kürzlich ein LAMP mit Java zum Laufen gebracht. Bedingung war,
dass ich in /etc/init.d/apache LD_LIBRARY_PATH auf einen bestimmten Pfad
des Java-Installationsverzeichnis setze (/usr/lib/j2se/1.4/jre/lib/i386;
da sind lauter shared objects drin).
Setze ich dagegen LD_LIBRARY_PATH nicht, schreibe dafür aber den Pfad in
ld.so.conf rein und führe ldconfig aus, funktioniert PHP mit Java nicht.
shell> man ldconfig
ldconfig creates the necessary links and cache (for use by the run-time
linker, ld.so) to the most recent shared libraries found in the
direc-
tories specified on the command line, in the file
/etc/ld.so.conf, and...
Weiß jemand, warum LD_LIBRARY_PATH hier schon funktioniert, das
Zweiergespann ld.so.conf-ldconfig aber nicht? Was ist eigentlich der
Unterschied zwischen diesen beiden Konzepten?
Viele Grüße
Alfred
Reply to: