如果你的机器是64位,并且在安装zlib时候出现下面错误:
/usr/bin/ld:
/usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 can not be
used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
修补办法(接上面步骤):
vi Makefile
找到 CFLAGS=-O3 -DUSE_MMAP
在后面加入-fPIC,即变成CFLAGS=-O3 -DUSE_MMAP -fPIC
接下面步骤
#################################################
make
make install
阅读(1884) | 评论(0) | 转发(0) |