Thanks for the quick help, Tom.
Here's what I got:
>>
# more conftest.c
int main() {return 0;}
# gcc -o conftest
conftest.c -lz -lresolv -lgen -lnsl -lsocket -ldl -lm -lreadline -ltermcap
# ls
conftest conftest.c
# ./conftest
ld.so.1: ./conftest: fatal: libz.so: open failed: No such file or directory
Killed
# echo $?
137
# find /* -name libz.so
/usr/local/lib/libz.so
#
<<
By the way, the path for the user running the compile is:
# $PATH
ksh:
/usr/local/qt/bin:/usr/bin:/usr/local/bb/bin:/usr/ucb:/etc:/usr/local/bin:/u
sr/local/sbin:/usr/sbin:/usr/openwin/bin:/usr/ccs/bin:/usr/local/lib:/usr/sh
are/lib/terminfo:/usr/local/mysql/bin: not found
Maybe the solution should be clear, but again I'm still climbing the Unix
admin learning curve. There's something odd with the 'not found' at the end
of hte PATH value, and with the trailing colon. That colon is not in the
PATH value in .profile. Any ideas?
Best,
David De Graff