problem when install in linux redhat 5
Added by cd ptt almost 14 years ago
I'm trying to install cdo in my system linux redhat es5
i've a problem when do make process
the message show
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make(2): * [cdi] Error 1
make(2): Leaving directory '/home/test/cdo/cdo-1.4.6/libcdi/app'
make(1): [install-recursive] Error 1
make(1): Leaving directory '/home/test/cdo/cdo-1.4.6/libcdi'
make: ** [install-recursive] Error 1
Has anyone face this problem before?
Please let me know how to solve this kind of problem?
Thank you in advance.
Best regards
Chadin
Replies (4)
RE: problem when install in linux redhat 5 - Added by Ralf Mueller almost 14 years ago
Hi Chadin!
I don't know, where you have installed zlib. You can manually set it for CDO with --with-zlib
configure option.
regards
ralf
RE: problem when install in linux redhat 5 - Added by cd ptt almost 14 years ago
Thank you Ralf
The problem solved.
I'm just set what you recommended
--with-zlib=/<path of library>
Regards
Chadin
RE: problem when install in linux redhat 5 - Added by Ralf Mueller almost 14 years ago
This behaviour is still confusing to me, because the configure call should have stopped on a non existing zlib on your system. But it did not happen here. Could you please send the config.log file from the configure run without '--with-zlib'?
thanks
ralf
RE: problem when install in linux redhat 5 - Added by David Gobbett almost 14 years ago
Hi,
I thought you'd be interested to know I had exactly the same problem installing CDO under CygWin on Windows 7 64 Bit today. Thanks to this posting, I solved the problem by installing the Libs/zlib in the Cygwin setup, then added "-–with-zlib=/cygdrive/c/cygwin/usr/" to the ./configure command.
thanks
David