寻觅生命中的那一片浅草......

每日存档 三月 22nd, 2011

spine的make错误:cannot find -lz

./configure时没有报错
/usr/bin/ld: cannot find -lz

vi config.log
搜索lz
可以看到如下错误

configure:19207: $? = 0
configure:19210: test -s conftest
configure:19213: $? = 0
configure:19226: result: yes
configure:19240: checking for deflate in -lz
configure:19270: gcc -o conftest -g -O2 conftest.c -lz -lpthread -lm >&5
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
configure:19276: $? = 1
configure: failed program was:
| /* confdefs.h. */

Google下checking for deflate in -lz,发现跟zlib有关
yum -y install zlib-devel

就可以正常make了

2011年三月
« 1月   8月 »
 123456
78910111213
14151617181920
21222324252627
28293031