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

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

编译之,错误如下:

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

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

目录
相关文章
|
24天前
|
自然语言处理 编译器 C语言
【C++ 20 新特性】参数包初始化捕获的魅力 (“pack init-capture“ in C++20: A Deep Dive)
【C++ 20 新特性】参数包初始化捕获的魅力 (“pack init-capture“ in C++20: A Deep Dive)
37 0
|
8月前
|
PyTorch 算法框架/工具 Python
AttributeError: module ‘distutils‘ has no attribute ‘version‘解决跑pytorch代码报错
AttributeError: module ‘distutils‘ has no attribute ‘version‘解决跑pytorch代码报错
|
算法框架/工具 Caffe
编译Caffe错误:libpython3.5m.a(abstract.o): relocation R_X86_64_32S against
编译Caffe错误:libpython3.5m.a(abstract.o): relocation R_X86_64_32S against
86 0
编译pluma: pluma/Makefile.am:192: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
编译pluma: pluma/Makefile.am:192: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
92 0
|
Java C++
C++编译错误解决办法:Class_Label[abi:cxx11]'被多次定义
C++编译错误解决办法:Class_Label[abi:cxx11]'被多次定义
122 0
|
缓存 iOS开发
Runtime系列:Class的结构【03】
Runtime系列:Class的结构
107 0
Runtime系列:Class的结构【03】
ES6—02:class中的函数
ES6—02:class中的函数
89 0
ES6—02:class中的函数
Travis CI Could not find or load main class org.gradle.wrapper.GradleWrapperMain 错误
问题 在 Travis CI 编译的时候出现 Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain 错误。
1480 0
|
Java 开发工具
小知识(class文件查看jdk版本,beyond,could not find setter)
最近几天工作当中遇到了一些问题,所以记录下来。 1.如何查看class文件的sdk版本 2.beyond compare比对文件 3.Could not find setter for native_place on class com.
1478 0