libpython2.7.a(abstract.o) recompile with -fPIC
2016-01-23 22:03
621 查看
安装condor时遇到这个错误,/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object; recompile with -fPIC,查资料说是安装python时没有使用-fPIC参数,使生成的libpython2.7.a静态库有问题。于是/usr/local/lib/libpython2.7.a文件删除,并重新安装python,如下:
中 440,441行的代码注释掉:
against `a local symbol' can not be used when making a shared object; recompile with -fPIC,查资料说是安装python时没有使用-fPIC参数,使生成的libpython2.7.a静态库有问题。于是/usr/local/lib/libpython2.7.a文件删除,并重新安装python,如下:
wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz tar xf Python-2.7.6.tar.xz cd Python-2.7.6将python_source_code路径下的setup.py
中 440,441行的代码注释掉:
#add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') #add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')之后:
make & make install这样新生成的libpython2.7.a就没有问题啦~(ps:若重新安装condor时发现又提示无法找到libpython2.7.a,则找到相应的文件移到错误提示中所的路径即可)
相关文章推荐
- 《Python for kids》学习笔记(四)
- 在ubuntu 15.10 上配置vim ,用来进行python 开发
- python进阶——类和对象
- leetcode之insertion Sort list
- 【Python】Hello World 输入输出
- Python基础之day2
- Json概述以及python对json的相关操作
- Python字符串、元组、列表、字典互相转换的方法
- Python随手笔记第一篇(2)之初识列表和元组
- Python convert list string to list
- Python使用Requests第三方库自动登陆知乎
- eclipse环境搭建之三:Python
- Python collections.defaultdict() 与 dict的使用和区别
- 【python】题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?
- Python成长之路第一篇(2)-初识列表和元组
- python爬虫之赞同知乎用户所有答案以及给用户发私信
- Python成长之路第一篇(2)-初识列表和元组
- [Leetcode]91. Decode Ways@python
- Python 插件安装
- 简单理解python下的字符串