Ahmed Moustafa writes:
> bash-2.03# echo "int main() { return 0; }" >conftest.c
> bash-2.03# gcc -o conftest conftest.c -lz -lresolv -lgen -lnsl -lsocket -ldl
> -lm
> bash-2.03# ./conftest
> ld.so.1: ./conftest: fatal: libz.so: open failed: No such file or directory
You need to set the LD_LIBRARY_PATH environment variable to include the
location where libz is installed, e.g.,
LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH
... or whichever method to configure the dynamic linker you prefer. I'll
update FAQ_Solaris about this.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/