学习笔记之 初试Linux遇到的问题 2015-10-13
1. 安装.deb文件,用sudo gdebi XXX.deb
sudo apt-get install xxx
2.
需要配置系统路径:
LD_LIBRARY_PATH=.../lib:LD_LIBRARY_PATH
export
LD_LIBRARY_PATH
3.
ln -sf xxx xxx 软链接
4. 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
然后就成功了
。。。
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
-xvzf
test.tar.gz完成后会生成一个解压缩后的目录,进入该目录,查看readme文件或者install文件,里面有详细的安装命令。一般的安装步骤是./configure
回车make
回车make
install 回车make
clean
回车如果configure没有通过,说明你的系统环境没有达到要求,该软件所依赖的文件没有被安装,需要根据提示信息来具体分析。以上的各个命令只是最常用的使用方式,还有比较实用的参数没有介绍,可以自己查看帮助文档。
7.
在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啊,搜到了,然并卵。。。
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,就可以进来了。别问我为什么,我也不知道。。。。
学习笔记之 初试Linux遇到的问题 2015-10-13的更多相关文章
- Docker学习笔记二(linux下安装Docker)
Docker学习笔记二(linux下安装Docker) 1.在线安装linux Docker 这种方式首先要保证linux 环境下可以上网,当然,小编是在自己的电脑上安装了虚拟机,在虚拟机上安装了,l ...
- 驱动开发学习笔记. 0.04 linux 2.6 platform device register 平台设备注册 1/2 共2篇
驱动开发读书笔记. 0.04 linux 2.6 platform device register 平台设备注册 1/2 共2篇下面这段摘自 linux源码里面的文档 : Documentatio ...
- linux命令学习笔记(25):linux文件属性详解
Linux 文件或目录的属性主要包括:文件或目录的节点.种类.权限模式.链接数量.所归属的用户和用户组. 最近访问或修改的时间等内容.具体情况如下: 命令: ls -lih 输出: [root@loc ...
- kvm虚拟化学习笔记(二)之linux kvm虚拟机安装
KVM虚拟化学习笔记系列文章列表----------------------------------------kvm虚拟化学习笔记(一)之kvm虚拟化环境安装http://koumm.blog.51 ...
- 驱动开发学习笔记. 0.05 linux 2.6 platform device register 平台设备注册 2/2 共2篇
驱动开发读书笔记. 0.05 linux 2.6 platform device register 平台设备注册 2/2 共2篇 下面这段摘自 linux源码里面的文档 : 内核版本2.6.22Doc ...
- linux初级学习笔记二:linux操作系统及常用命令,文件的创建与删除和命名规则,命令行展开以及linux中部分目录的作用!(视频序号:02_3)
本节学习的命令:tree,mkdir,rmdir,touch,stat,rm 本节学习的技能:Linux中主要的目录作用以及特殊的目录文件: 文件的命名规则,命令行展开: 文件的创建与删除: Linu ...
- SQLServer 学习笔记之超详细基础SQL语句 Part 10
Sqlserver 学习笔记 by:授客 QQ:1033553122 -----------------------接Part 9------------------- 删除约束的语法 ALTER T ...
- Git学习笔记(Mac Linux系统)
最近参与学校一个比赛,和队友一起做一个小项目,需要将代码传到Coding(国内git代码托管平台),因此这几天才正式入手git版本控制系统,在这里我就记录一下最近的学习git心得体验,一来分享一下自己 ...
- ARM-LINUX学习笔记-(虚拟机linux串口终端以及USB程序下载,基于TQ2440)
昨天安装了ssh服务之后今天在windows上用xshell登陆发现登录不上,原因是使用了virtualbox的NAT模式,在NAT模式下,客户机可以很方便地上网,但是想要链接宿主机就需要打开网络地址 ...
随机推荐
- 如何使用SVN管理我们的源代码
今天把公司的SVN服务器配置给做了一下,根据公司部门的不同,划分了不同的访问目录,并给不同目录配置了相应的权限,算是把这份差事给干完了,但其实我对自己的工作是不满意和有遗憾的,因为目前公司的SVN服务 ...
- JVM-类文件结构
无关性的基石 I> "平台无关性"实现在操作系统的应用层上:sun公司以及其他虚拟机提供商发布了许多可以运行在各种不同平台上的虚拟机,这些虚拟机都可以载入和执行同一种平台无关 ...
- Python inspect
inspect — Inspect live objects New in version 2.1. The inspect module provides several useful functi ...
- struts2+hibernate整合开发步骤
百度的各种代码,步骤,自己整合了一下 1,创建数据库 常用mysql creat table..... 2,在WebContent下的bin中添加相应的包 http://pan.baidu.com ...
- 数组prototype添加函数呢,采用回调判定函数内容
1.解决方案 Array.prototype.all = function (p) { return this.filter(p).length == this.length; }; Array.pr ...
- C++的三种继承方式简述
C++对父类(也称基类)的继承有三种方式,分别为:public继承.protected继承.private继承.三种继承方式的不同在于继承之后子类的成员函数的"可继承性质". 在说 ...
- 爬虫学习----pattern
1.match match(string[, pos[, endpos]]) | re.match(pattern, string[, flags]): 这个方法将从string的pos下标处起尝试匹 ...
- PHP中的文件上传
文件上传: 1.单个文件上传 2.多个文件上传 一.PHP配置文件中和上传有关的选项 file_uploads=on upload_max_filesize= 最大 ...
- swift系统学习第一章
第一节:变量,常量,类型推断,字符,字符串 //swift学习第一节 /* 变量 常量 类型推断 字符 字符串 */ import UIKit //变量 var str = "swift&q ...
- HDU 4888 (网络流)
Poroblem Redraw Beautiful Drawings (HDU4888) 题目大意 一个n行m列的矩形,只能填0~k的数字. 给定各行各列的数字和,判定有无合法的方案数.一解给出方案, ...