日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

学习笔记之 初试Linux遇到的问题

發布時間:2023/12/20 linux 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 学习笔记之 初试Linux遇到的问题 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

轉自:https://www.cnblogs.com/wangxiaocvpr/p/4875618.html

  • 安裝.deb文件,用sudo gdebi XXX.deb
  • sudo apt-get install xxx

  • 需要配置系統路徑:
  • LD_LIBRARY_PATH=…/lib:LD_LIBRARY_PATH

    export LD_LIBRARY_PATH

  • ln -sf xxx xxx 軟鏈接

  • Training LeNet on MNIST 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

    Creating lmdb…

    /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

    然后就成功了 。。。

  • 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.

  • Linux怎么安裝.tar.gz軟件
  • tar.gz 是用tar命令將源碼文件打包成一個文件,然后用zip命令壓縮成一個壓縮包,所以在安裝前要解壓縮,命令如下:tar -xvzf test.tar.gz完成后會生成一個解壓縮后的目錄,進入該目錄,查看readme文件或者install文件,里面有詳細的安裝命令。一般的安裝步驟是./configure 回車make 回車make install 回車make clean 回車如果configure沒有通過,說明你的系統環境沒有達到要求,該軟件所依賴的文件沒有被安裝,需要根據提示信息來具體分析。以上的各個命令只是最常用的使用方式,還有比較實用的參數沒有介紹,可以自己查看幫助文檔。

  • 在cifa10這個數據集上又出現了類似的問題:
  • wangxiao@wangxiao-Aspire-VN7-591G:~/Downloads/caffe-master/examples/cifar10$ sh create_cifar10.sh

    Creating lmdb…

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

    Computing image 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

    Creating lmdb…

    F1013 15: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)

    Computing image mean…

    terminate called 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

    Creating lmdb…

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

    Computing image mean…

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

    ./build/tools/compute_image_mean: not found

    Done.

    繼續Baidu啊,搜到了,然并卵。。。

  • 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,就可以進來了。別問我為什么,我也不知道。。。。

    總結

    以上是生活随笔為你收集整理的学习笔记之 初试Linux遇到的问题的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。