Study Notes first try Linux problems, linux2015-10-13

Source: Internet
Author: User

Study Notes first try Linux problems, linux2015-10-13

1. Install the. deb file and use sudo gdebi XXX. deb

Sudo apt-get install xxx


2. You need to configure the system path:

LD_LIBRARY_PATH =.../lib: LD_LIBRARY_PATH

ExportLD_LIBRARY_PATH


3. ln-sf xxx soft link


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.


However, convert_mnist_data.bin is there...


 

 

 

 

 

 

 

Since: Baidu A: Link: http://blog.sciencenet.cn/blog-1583812-843207.html

 


 

 

 

 

 

 

 

 

 

 

 

And then it succeeds...




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 install .tar.gz Software


Tar.gz uses the tar command to package the source code file into a file, and then compress the file into a compressed package with the zip command. Therefore, decompress the package before installation. The command is as follows: after the tar-xvzftest.tar.gz is complete, it will generate a decompressed directory, enter the directory, view the readme file or install file, which contains detailed installation commands. The general installation steps are. /configure press ENTER make press ENTER makeinstall press ENTER makeclean press enter if configure fails, it means that your system environment does not meet the requirements, and the files on which the software depends are not installed. You need to analyze them according to the prompts. The preceding commands are only the most commonly used methods, and some useful parameters are not described. You can view the help documentation on your own.


 

7. A similar problem occurs in the cifa10 Dataset:


 

 

 

 

 

 

 

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.

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

You can change the input mode. However, another error occurs:










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.

 

Continue to Baidu. I found it and found it...

 

 

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.