简体   繁体   English

Caffe安装:make和cmake均失败

[英]Caffe Installation: Both make and cmake fail

I am using Ubuntu 14.04, Python 2.7, NVIDIA Driver 367, Cuda-8.0, CudNN-5.0, GTX-1080, and I am trying to install Caffe on my system. 我正在使用Ubuntu 14.04,Python 2.7,NVIDIA驱动程序367,Cuda-8.0,CudNN-5.0,GTX-1080,并且我正在尝试在系统上安装Caffe。 I am currently using Tensorflow on my system with no issues. 我目前在系统上使用Tensorflow,没有任何问题。 I have installed all prerequisites as advised by http://caffe.berkeleyvision.org and I believe I have chosen the right configuration (including library paths, etc.). 我已经按照http://caffe.berkeleyvision.org的建议安装了所有先决条件,并且我相信我已经选择了正确的配置(包括库路径等)。 The initial stages, 初期阶段

make all
make test

run with no error or warning. 运行没有错误或警告。 Then at 'make runtest' I get the following error 然后在“ make runtest”我得到以下错误

make: execvp: .build_release/tools/caffe permission denied make:execvp:.build_release / tools / caffe权限被拒绝

I thought this is simply a permission issue and ran it with 'sudo make runtest' and got the exact same error. 我以为这只是一个权限问题,并使用“ sudo make runtest”运行它,并得到了完全相同的错误。 I also used 'sudo su -' and ran 'make runtest' as root and the same problem persists. 我还使用'sudo su-'并以root身份运行'make runtest',并且相同的问题仍然存在。

Then I tried to use cmake to build Caffe and similarly 然后我尝试使用cmake来构建Caffe,类似地

make all make install 全部安装

run with no warnings or errors but when I run 'make runtest' I get: 运行时没有警告或错误,但是当我运行“ make runtest”时,我得到:

[100%] Built target proto
[100%] Built target caffe
[100%] Built target gtest
[100%] Built target test.testbin
/bin/sh: 1: /media/MainStorage/caffe-master/build/test/test.testbin:  Permission denied
make[3]: *** [src/caffe/test/CMakeFiles/runtest] Error 126
make[2]: *** [src/caffe/test/CMakeFiles/runtest.dir/all] Error 2
make[1]: *** [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2
make: *** [runtest] Error 2

Running it as root did not fix the issue. 以root用户身份运行无法解决问题。 I would highly appreciate any input. 我将不胜感激任何输入。

This post is quite old now, and I am not so sure about my answer as I am also a newbie in Linux, but I hope my comment would be useful to some other. 这篇文章现在已经很老了,我也不是很确定,因为我也是Linux的新手,但是我希望我的评论对其他人有用。 I got the same problem like yours on Ubuntu 14, but not on Ubuntu 16. My problem comes from the NTFS drive which I installed Caffe on. 我在Ubuntu 14上遇到了与您相同的问题,但在Ubuntu 16上却没有。我的问题来自于我在上面安装了Caffe的NTFS驱动器。 By default, Ubuntu 14 does not allow execution permission on mounted NTFS drives. 默认情况下,Ubuntu 14不允许在已安装的NTFS驱动器上执行权限。 If you are in a similar situation, just copy the whole Caffe folder to a ext4 drive and make again. 如果您处于类似情况,只需将整个Caffe文件夹复制到ext4驱动器,然后重新进行制作。

P/S: there seem to be some fix available for NTFS on Ubuntu 14, but I did not try :) P / S:在Ubuntu 14上似乎可以对NTFS进行一些修复,但是我没有尝试:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM