/usr/local/lib/libpython2.7.a: could not read symbols: Bad value. collect2: ld retur ned 1 exit
来源:互联网 发布:linux 脚本 批量执行 编辑:程序博客网 时间:2024/05/24 02:53
在源码安装mod_wsgi-3.4时,报以上标题错误,通过以下方法得到解决:
仔细分析错误代码之后,定位原因在于,
python在编译时,libpython2.7.a库中的abstract.o模块的编译过程中,没有加上-fPIC;
按照网上的方法,各种在python编译过程中加上-fPIC参数,都没有解决;
最后仔细看make命令的输出结果,发现abstract.o模块根本就没有经过编译。
继续最终,发现Python的源码路径中Object下,abstract.c和abstract.o都存在,而且这个文件是下载python包是就已经编译好了的(生成了.o文件);
然后删除所有.o文件,然后重新make,在make,就有abstract.o的编译过程了。
尼玛,这个问题整整搞了我10个小时,不知道能不能完全解决。
------------
尼玛,就知道没有那么容易,后来又报另外一个包需要重新编译。
然后我把Python源码目录中所有自带的.o文件删了,然后就ok啦。。。
安装命令如下:
- ./configure --prefix=/usr/local/ –enable-shared CFLAGS=-fPIC
- make
- make install
阅读全文
0 0
- /usr/local/lib/libpython2.7.a: could not read symbols: Bad value. collect2: ld retur ned 1 exit
- php make报错:/usr/local/openssl/lib/libssl.a: could not read symbols: Bad value
- /usr/local/lib/libz.a: could not read symbols: Bad value
- recompile with -fPIC /usr/local/lib/libboost_python.a: could not read symbols: Bad value
- TTserver 编译/usr/local/lib/libbz2.a: could not read symbols: Bad value解决
- apache 在 加载openssl 模块时出现 “/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value”错误解决方案
- make error: libneon.a: could not read symbols: Bad value
- 解决 liblog4cpp.a: could not read symbols: Bad value
- R_X86_64_32 & could not read symbols: Bad value
- could not read symbols: File in wrong format collect2: ld 返回 1 make: *** [all] 错误 1
- /lib/libmatrix.a: file not recognized: File format not recognized collect2: ld returned 1 exit statu
- /usr/lib/libexpat.so: could not read symbols解决方法
- /usr/lib/libexpat.so: could not read symbols解决方法
- CentOS6升级openssl报错libcrypto.a(rsaz_exp.o): could not read symbols: Bad value
- R_X86_64_32 & could not read symbols: Bad value编译
- /usr/lib/libcxcore.so.2.1: could not read symbols: Invalid operation 解决方法
- 动态库编译时(引用静态库)could not read symbols: Bad value
- /usr/bin/ld:cannot open output file a.out: Permission denied collect2: ld returned 1 exit status
- web 前端基础知识精简
- POJ 2195 Going Home(最小费用最大流)
- Mysql 排序原理
- 杭电ACM1000
- Python报错信息与原因分析
- /usr/local/lib/libpython2.7.a: could not read symbols: Bad value. collect2: ld retur ned 1 exit
- jquery+css实现下拉列表
- “GetModuleFileNameW”: 不能将参数 2 从“char [260]”转换为“LPWSTR”
- Find a multiple POJ
- hadoop 压缩解压
- Humble Numbers(hdoj1058)
- [NOIP模拟赛]分钱
- ESP8266程序烧写
- 标签总结