Centos 下封装源码报错日志

目标: 在Centos 下封装源码

1 系统环境是CentOS Linux release 7.6.1810 (Core)

使用命令:cat /etc/redhat-release

2 将已有的工程拷贝到/home/xxx/下,重新编译

报错1 

/usr/bin/ld: warning: libopencv_core.so.3.2, needed by /usr/local/lib/libopencv_highgui.so, may conflict with libopencv_core.so.2.4

因为只是warning所以并没有管他,应该只是版本冲突的问题,就接着往下做了。

全部编译完,配置完以后,发现在python下import  caffe 会报错,

报错2

重新配置路径,重启服务都不管用

原因是,我参考的手册上写的 是文件最后一行添加,结果我将export 和下面的路径分为两行了。

更改为一行

 

报错3

ImportError: libopencv_core.so.2.4: cannot open shared object file: No such file or directory

解决https://blog.csdn.net/qq_38451119/article/details/81117470

报错4

ImportError: No module named suds.client

解决:

pip install client

pip install suds

报错5

No module named dlib

解决:

pip install dlib

 

报错6

No module named xgboost.sklearn

解决:

git clone --recursive https://github.com/dmlc/xgboost
cd xgboost
sudo cp make/minimum.mk ./config.mk;
sudo make -j4;
sh build.sh
cd python-package
python setup.py install

报错7

报错:

xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?

解决:

参考https://blog.csdn.net/maqunfi/article/details/83070183

但是顺序如下

第一步:在dist下的主目录下执行:

  1. git clone --recursive https://github.com/dmlc/xgboost.git

第二步:在链接http://www.picnet.com.au/blogs/guido/2016/09/22/xgboost-windows-x64-binaries-for-download/中下载最新版本的xgboost.dll.

把下载好的xgboost.dll丢到xgboost下面

第三步 :这个时候还可能缺一个VERSION的文件,在xgboost下新建一个VESRION的空文件就可以了

第四步执行:

  1. cd xgboost

  2. ./build.sh

  3. cd python-package

  4. python setup.py install

完成

顺利完成,开心,20:01

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值