在创建共享对象时,不能使用针对'\u Py_NotImplementedStruct'的重新定位R_X86_64_32S;请使用fPIC重新编译

2024-05-15 13:58:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试安装dlibPython库。在某些系统上(macOS,stock Ubuntu14.04)pip install dlib工作正常,但是在Ubuntu14.x中,这是CircleCI环境的一部分,它会失败,并出现以下错误。

Linking CXX shared library dlib.so
   /usr/bin/ld: /opt/circleci/python/2.7.11/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
   error: cmake build failed!

怎么了?


Tags: installpip环境系统错误stocklibrarycxx