/usr/bin/ld: cannot find -lpython2

27 篇文章 1 订阅
Q:
$ make 
[  1%] Built target proto
[ 84%] Built target caffe
[ 85%] Built target caffe.bin
[ 87%] Built target compute_image_mean
[ 88%] Built target convert_imageset
[ 88%] Built target device_query
[ 90%] Built target extract_features
[ 90%] Built target finetune_net
[ 90%] Built target net_speed_benchmark
[ 90%] Built target test_net
[ 92%] Built target train_net
[ 92%] Built target upgrade_net_proto_binary
[ 93%] Built target upgrade_net_proto_text
[ 95%] Built target upgrade_solver_proto_text
[ 95%] Built target classification
[ 95%] Built target convert_cifar_data
[ 95%] Built target convert_mnist_data
[ 96%] Built target convert_mnist_siamese_data
[ 98%] Built target pycaffe
[ 98%] Building Matlab interface: /home/junmuzi/Works/my_works/lstm/caffe/matlab/+caffe/private/caffe_.mexa64
Building with 'g++'.
Warning: You are using gcc version '4.8.4'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release.
Warning: You are using gcc version '4.8.4-2ubuntu1~14.04)'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release.
/usr/bin/ld: cannot find -lpython2
collect2: error: ld returned 1 exit status


make[2]: *** [../matlab/+caffe/private/caffe_.mexa64] Error 255
make[1]: *** [matlab/CMakeFiles/matlab.dir/all] Error 2
make: *** [all] Error 2
----
Solution:
modify file matlab/CMakeFiles/matlab.dir/build.make, and delete "-lpython2.7"
Then, re-make, "# make"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值