caffe运行时的bug

1. 安装.deb文件,用sudo gdebi XXX.deb

sudo apt-get install xxx


2.需要配置系统路径:

LD_LIBRARY_PATH=.../lib:LD_LIBRARY_PATH

exportLD_LIBRARY_PATH


3.ln -sf xxx xxx 软链接


4. Training LeNet onMNIST with Caffe

















 

wangxiao@wangxiao-Aspire-VN7-591G:~/Downloads/caffe-master/examples/mnist$cd

wangxiao@wangxiao-Aspire-VN7-591G:~$sh/home/wangxiao/Downloads/caffe-master/examples/mnist/create_mnist.sh

Creatinglmdb...

/home/wangxiao/Downloads/caffe-master/examples/mnist/create_mnist.sh:16:/home/wangxiao/Downloads/caffe-master/examples/mnist/create_mnist.sh:build/examples/mnist/convert_mnist_data.bin: not found

/home/wangxiao/Downloads/caffe-master/examples/mnist/create_mnist.sh:18:/home/wangxiao/Downloads/caffe-master/examples/mnist/create_mnist.sh:build/examples/mnist/convert_mnist_data.bin: not found

Done.


然而,convert_mnist_data.bin就在那里哇。。。


 

 

 

 

 

 

 

于是乎:百度一下:链接:http://blog.sciencenet.cn/blog-1583812-843207.html

 


 

 

 

 

 

 

 

 

 

 

 

然后就成功了。。。




5.2015-10-13 12:39:29 (22.2 KB/s) - ‘caffe_ilsvrc12.tar.gz.1’ saved[17858008/17858008]


Unzipping...


gzip:stdin: unexpected end of file

tar:Unexpected EOF in archive

tar:Unexpected EOF in archive

tar:Error is not recoverable: exiting now

Done.

 



 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6.Linux怎么安装.tar.gz软件


tar.gz是用tar命令将源码文件打包成一个文件,然后用zip命令压缩成一个压缩包,所以在安装前要解压缩,命令如下:tar-xvzftest.tar.gz完成后会生成一个解压缩后的目录,进入该目录,查看readme文件或者install文件,里面有详细的安装命令。一般的安装步骤是./configure 回车make 回车makeinstall 回车makeclean 回车如果configure没有通过,说明你的系统环境没有达到要求,该软件所依赖的文件没有被安装,需要根据提示信息来具体分析。以上的各个命令只是最常用的使用方式,还有比较实用的参数没有介绍,可以自己查看帮助文档。


 

7.cifa10这个数据集上又出现了类似的问题:


 

 

 

 

 

 

 

wangxiao@wangxiao-Aspire-VN7-591G:~/Downloads/caffe-master/examples/cifar10$sh create_cifar10.sh

Creatinglmdb... 

create_cifar10.sh:12: create_cifar10.sh:./build/examples/cifar10/convert_cifar_data.bin:not found

Computingimage mean...

create_cifar10.sh:16: create_cifar10.sh: ./build/tools/compute_image_mean:not found

Done.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

换了一种输入方式,可以了,然而出现了另一种错误:










wangxiao@wangxiao-Aspire-VN7-591G:~/Downloads/caffe-master$sh ./examples/cifar10/create_cifar10.sh

Creatinglmdb...

F101315:08:01.317740 12620 convert_cifar_data.cpp:58] Check failed:data_file Unable to open train file #2

***Check failure stack trace: ***

@ 0x7fb181f96daa (unknown)

@ 0x7fb181f96ce4 (unknown)

@ 0x7fb181f966e6 (unknown)

@ 0x7fb181f99687 (unknown)

@ 0x402fc7 convert_dataset()

@ 0x401b8f main

@ 0x7fb1813c6ec5 (unknown)

@ 0x401c49 (unknown)

@ (nil) (unknown)

Aborted(core dumped)

Computingimage mean...

terminatecalled after throwing an instance of 'std::bad_alloc'

what(): std::bad_alloc

Aborted(core dumped)

Done.








wangxiao@wangxiao-Aspire-VN7-591G:~$cd /home/wangxiao/Downloads/caffe-master/

wangxiao@wangxiao-Aspire-VN7-591G:~/Downloads/caffe-master$sh ./examples/cifar10/create_cifar10.sh


Creatinglmdb...

./examples/cifar10/create_cifar10.sh:12: ./examples/cifar10/create_cifar10.sh:./build/examples/cifar10/convert_cifar_data.bin: not found


Computingimage mean...

./examples/cifar10/create_cifar10.sh:16: ./examples/cifar10/create_cifar10.sh:

./build/tools/compute_image_mean:not found

Done.

 

继续Baidu啊,搜到了,然并卵。。。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8. Linux 安装 matlab, 激活完毕后,从终端启动时,仍然出现错误:

 

License checkout failed.
License Manager Error -8
Make sure the HostID of the license file matches this machine, and that the HostID on the SERVER
line matches the HostID of the license file.

Troubleshoot this issue by visiting:
http://www.mathworks.com/support/lme/R2014b/8

Diagnostic Information:
Feature: MATLAB
License path: /home/wangxiao/.matlab/R2014b_licenses:/usr/local/MATLAB/R2014b/licenses/license.dat:/usr/local/MATL
AB/R2014b/licenses/license_wangxiao-System-Product-Name_406917_R2014b.lic:/usr/local/MATLAB/R2014b/l
icenses/network.lic
Licensing error: -8,523.

 

 

解决方案为:

Linux Copy/overwrite libmwservices.so ( from the linux folder provided ) to : /usr/local/MATLAB/R2014A/bin/glnxa64..

 

然而 在复制的时候,提示我没有权限阿,查看文件夹属性,发现: you are not the owner, you don't have the access ....

shit 。。。

 

只好用终端命令了,sudo  cp xxx /libmwservices.so  /usr/local/MATLAB/R2014A/bin/glnxa64 

即可 。。。

 

那么如何设置 从终端启动 matlab 呢?

sudo ln -s /usr/local/Matlab/bin/matlab(你的安装位置)  /usr/bin/

 

 

 

打开的过程中报错:

 

 

 

 直接输入:

>> rehash toolboxcache

然后关掉终端,重新打开matlab,就可以进来了。别问我为什么,我也不知道。。。。

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值