Page 1 of 1

FC12, /usr/bin/ld: can not find -lz

Posted: 03 Feb 2010, 00:37
by wmliu
Hi,
Just wonder if anybody has had such problem that ld complains about can not find -lz when building the latest elegant? I do have zlib and zlib-devel installed and I can build the previous version without any problem.

Thanks

wl

Re: FC12, /usr/bin/ld: can not find -lz

Posted: 03 Feb 2010, 00:49
by wmliu
It turns out that it was looking for the static library. It get resolved by changing the STATIC_BUILD from YES to NO in CONFIG_SITE.linux-x86.linux-x86.

Re: FC12, /usr/bin/ld: can not find -lz

Posted: 06 Feb 2011, 11:28
by ywang25
To build a static linked version, you can install it with the command
yum install zlib-static.i686
The libz.a should be available under /usr/lib after installation.