解决安装软件时的/usr/local/lib/libz.a(compress.o)错误
来源:互联网 发布:我的知乎2016 编辑:程序博客网 时间:2024/04/28 08:14
/usr/bin/ld: /usr/local/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
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgd.la] 错误 1
make[2]: Leaving directory `/usr/local/src/gd-2.0.33'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/src/gd-2.0.33'
make: *** [all] 错误 2
[root@localhost gd-2.0.33]#
解决办法 : 重新安装 zlib-1.2.3.tar.gz
tar -zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure
vi Makefile
找到 CFLAGS=-O3 -DUSE_MMAP
在后面加入-fPIC,即变成CFLAGS=-O3 -DUSE_MMAP -fPIC
接下面步骤
make
make install
- 解决安装软件时的/usr/local/lib/libz.a(compress.o)错误
- 解决安装软件时的/usr/local/lib/libz.a(compress.o)错误
- 解决安装软件时的/usr/local/lib/libz.a(compress.o)错误
- 解决安装软件时的/usr/local/lib/libz.a(compress.o)错误
- 解决安装软件时的/usr/local/lib/libz.a(compress.o)错误
- linux下安装subversion报错:/usr/local/zlib//lib/libz.a(compress.o): relocation R_X86_64_32 against `.rodat
- LAMP编译:解決 64 CPU 位元 compiler 時 zlib 出现/usr/local/lib/libz.a(crc32.o)造成的問題 .
- php5.2.17安装libpng时报zlib的错误:libz.a(crc32.o): relocation R_X86_64_32 against `a local symbol' can not
- /usr/local/lib/libz.a: could not read symbols: Bad value
- 安装Ubuntu的Mozilla Firefox的Adobe Flash Player时学习/lib、/usr/lib、/usr/local/lib的区别
- 解决方法/usr/bin/ld: /usr/local/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_'
- /lib和/usr/lib和/usr/local/lib的区别
- lib、/usr/lib和/usr/local/lib等的区别
- /lib /usr/lib /usr/local/lib的简单区分
- error: //usr/local/lib/libavformat.a(http.o): undefined reference to symbol 'inflateInit2_'
- /usr/local/lib/libneon.a :undefined reference
- 解决交叉编译mysql出现缺少/usr/local/ncurses/lib/libncurses.a
- 解决交叉编译mysql出现缺少/usr/local/ncurses/lib/libncurses.a
- Oracle 分区表 总结
- hdu 1754
- C#调用WebService
- Objective-C中类属性的 copy, tetain, assign , readonly , readwrite, nonatomic区别
- ARM指令中如何判断一个立即数是有效立即数
- 解决安装软件时的/usr/local/lib/libz.a(compress.o)错误
- grep用法详解:grep与正则表达式
- CGI编程入门--GET与POST示例
- EL表达式截取字符串
- 图像处理库OpenCV参考网址
- [VS2010].NET4.0环境下使用.NET2.0程序集,出现“混合模式程序集异常”
- jxl简介,jxl操作excel 创建,读取,修改。
- JAVA学习笔记(2)基本数据类型和基本操作
- fs.FSInputChecker: Found checksum error