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

Moderators: cyao, soliday

Post Reply
wmliu
Posts: 20
Joined: 30 Sep 2008, 10:52

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

Post by wmliu » 03 Feb 2010, 00:37

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

wmliu
Posts: 20
Joined: 30 Sep 2008, 10:52

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

Post by wmliu » 03 Feb 2010, 00:49

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.

ywang25
Posts: 52
Joined: 10 Jun 2008, 19:48

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

Post by ywang25 » 06 Feb 2011, 11:28

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.

Post Reply