[Nagiosplug-help] nagios-stat solaris 8
Peter Radcliffe
pir at pir.net
Fri Jan 24 07:53:12 CET 2003
Hugo van der Kooij <hvdkooij at vanderkooij.org> probably said:
> Do you have /usr/local/lib (and wherever you have other required libaries)
> added to LD_LIBRARY_PATH?
The generally preferred solution for solaris is to add
-R/path/too/libararies to the linking stage of whatever is having
problems, in this case python.
To configure python I use something like this;
#!/bin/sh
LDFLAGS=" -L/usr/local/lib -R/usr/local/lib \
-L/usr/local/ssl/lib -R/usr/local/ssl/lib "
LD_OPTIONS="$LDFLAGS"
LIBS="$LDFLAGS"
CC="gcc $LDFLAGS"
export LIBS LD_OPTIONS LDFLAGS CC
# possibly edit Modules/Setup* to enable _socket
./configure --with-threads
exit
Overkill, perhaps, but it works for me.
P.
--
pir pir-sig at pir.net pir-sig at net.tufts.edu
More information about the Help
mailing list