您当前的位置: 首页 >  Python

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

编译Caffe错误:libpython3.5m.a(abstract.o): relocation R_X86_64_32S against

柳鲲鹏 发布时间:2018-10-28 15:54:37 ,浏览量:0

  编译之,错误如下:  

libpython3.5m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC

  其实这个错误很常见。需要重新编译Python3.5……麻烦?比编译不过强,有办法就很好啦!

./configure --prefix=/usr/local/  --enable-shared CFLAGS=-fPIC
make clean
make && sudo make install

  一般建议删除目录后,重新解压、编译。

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0526s