學習筆記之 初試Linux遇到的問題 2015-10-13,linux2015-10-13
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啊,搜到了,然並卵。。。