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      [EMAIL PROTECTED]       http://yi.org/peter-e/


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Reply via email to