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

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

目录
打赏
0
0
0
0
17
分享
相关文章
Python Tricks-- Abstract Base Classes Keep Inheritance in Check
Python Tricks-- Abstract Base Classes Keep Inheritance in Check
39 1
解決Android报错:Could not initialize class org.codehaus.groovy.reflection.ReflectionCache
解決Android报错:Could not initialize class org.codehaus.groovy.reflection.ReflectionCache
247 1
在添加greendao 的plugin 出现?:Could not initialize class com.android.sdklib.repository
在添加greendao 的plugin 出现?:Could not initialize class com.android.sdklib.repository
在添加greendao 的plugin 出现?:Could not initialize class com.android.sdklib.repository
JavaFX报错:Class FIFinderSyncExtensionHost is implemented in both
JavaFX报错:Class FIFinderSyncExtensionHost is implemented in both
99 0
Failed to transform artifact 'butterknife-runtime.aar (com.jakewharton:butterknife-runtime:10.1.0)'
Failed to transform artifact 'butterknife-runtime.aar (com.jakewharton:butterknife-runtime:10.1.0)'
错误: 找不到或无法加载主类 org.apache.tools.ant.launch.Launcher
错误: 找不到或无法加载主类 org.apache.tools.ant.launch.Launcher
259 0
iOS开发 - 不通过import引入类名实现push或present
iOS开发 - 不通过import引入类名实现push或present
116 0
Appium问题解决方案(4)- Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException
Appium问题解决方案(4)- Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException
445 0
Appium问题解决方案(4)- Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException
Jibx插件使用maven构建Error loading class java.lang.CharSequence错误
Jibx插件使用maven构建Error loading class java.lang.CharSequence错误
Jibx插件使用maven构建Error loading class java.lang.CharSequence错误
【Groovy】编译时元编程 ( ASTTransformation#visit 方法简介 | org.codehaus.groovy.ast.ModuleNode 脚本节点 )
【Groovy】编译时元编程 ( ASTTransformation#visit 方法简介 | org.codehaus.groovy.ast.ModuleNode 脚本节点 )
253 0