编译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

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

目录
相关文章
|
4月前
|
前端开发 Python
Python Tricks-- Abstract Base Classes Keep Inheritance in Check
Python Tricks-- Abstract Base Classes Keep Inheritance in Check
26 1
|
8月前
|
IDE 前端开发 Java
IDE报错 NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field ‘
IDE报错 NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field ‘
3274 2
|
9月前
|
Java Scala
idea报错“Static methods in interface require -target:jvm-1.8”
idea报错“Static methods in interface require -target:jvm-1.8”
87 0
|
9月前
|
SQL JSON Java
Java【问题记录 02】对象封装+固定排序+list All elements are null引起的异常处理+Missing artifact com.sun:tools:jar:1.8.0
Java【问题记录 02】对象封装+固定排序+list All elements are null引起的异常处理+Missing artifact com.sun:tools:jar:1.8.0
101 0
|
Java 数据库 Android开发
在添加greendao 的plugin 出现?:Could not initialize class com.android.sdklib.repository
在添加greendao 的plugin 出现?:Could not initialize class com.android.sdklib.repository
377 1
在添加greendao 的plugin 出现?:Could not initialize class com.android.sdklib.repository
|
算法框架/工具 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
127 0
|
iOS开发
iOS开发 - 不通过import引入类名实现push或present
iOS开发 - 不通过import引入类名实现push或present
110 0
|
缓存 Java Maven
IDEA 告警:Library source does not match the bytecode for class
IDEA 告警:Library source does not match the bytecode for class
1166 0
IDEA 告警:Library source does not match the bytecode for 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 错误。
1538 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.
1522 0

热门文章

最新文章