![]() |
LAMP环境编译 编译libpng时出错 附上错误代码求助!!!
/usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `.rodata' 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 make[1]: *** [libpng12.la] Error 1 make[1]: Leaving directory `/lamp/libpng-1.2.31' make: *** [all] Error 2 |
一般是64 位 电脑才会出现。
解决方法如下: cd zlib-1.2.3 //进入zlib目录 CFLAGS="-O3 -fPIC" ./configure //使用64位元的方法进行编译 make clean make && make install -- 然后再重新安装libpng |
| All times are GMT +8. The time now is 05:33 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.