php编译错误

编译php时提示错误

/usr/bin/ld: /usr/local/freetype/lib/libz.a(compress.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

解决方法:

64位操作系统,添加-fPIC

进入zlib目录

./configure

sed -i 's/CFLAGS=-O3 -DUSE_MMAP/CFLAGS=-O3 -DUSE_MMAP -fPIC/g' Makefile

make&&make install

然后重新编译freetype

 

你可能感兴趣的:(PHP,职场,zlib,休闲)