【发布时间】:2014-05-24 07:42:10
【问题描述】:
我正在构建 vim 的 YouCompleteMe 插件,遵循这个 document。当我运行 make 时,出现以下错误。
Linking CXX shared library /home/sagar/.vim/bundle/YouCompleteMe/python/ycm_core.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
这是什么错误?
我已经安装了pyenv 来管理 python 版本。是不是有问题?
【问题讨论】:
-
尝试用
-fPIC编译它。您还应该有可用的 python 2.7 库。 -
@Lawrence 尝试使用
-fPIC编译它不起作用,同样的错误。
标签: python vim shared-libraries