=========
安装过程
1.下载MATLAB2015b破解版
操作系统:Ubuntu 16.04 LTS
程序文件:Matlab2015b-glnxa64破解版
解压提取文件:在ubuntu系统下可以直接提取压缩文件,得到三个文件:
“
license_standalone.lic
Matlab 2015b Linux64 Crack.rar
R2015b_glnxa64.iso
”
2.挂载ISO镜像
sudo mkdir /mnt/matlab
sudo mount -o loop [镜像文件的路径path/R2015b_glnxa64.iso] /mnt/matlab
进入安装文件挂载点,开始安装
cd /mnt/matlab
sudo ./install
3.开始安装
安装时选择不联网,然后输入秘钥,按照windows下的安装过程进行安装就行!下面开始安装破解文件
cd ~/下载/matlab2015b
sudo cp license_standalone.lic /usr/local/MATLAB/R2015b/bin/glnxa64
4.开始破解
cd /usr/local/MATLAB/R2015b/bin
sudo ./matlab
这时就会弹出MATLAB的开始界面,
但是呢接着就会弹出这样的错误:Matlab system error
Matlab system error解决方法
从网上查找的信息来看,上述破解不完全,需要从事以下操作。
1)
cd /usr/local/MATLAB/R2015b
sudo mkdir licenses(这里会提示licenses只读,无法操作)
sudo chmod 777 licenses
2)解压提取Matlab 2015b Linux64 Crack.rar
在提取文件中找到这两个文件:
libmwservices.so
libcufft.so.7.0.28
cd ~/下载/matlab2015b/Matlab 2015b Linux64 Crack
sudo cp Matlab_R2015b_glnxa64.lic /usr/local/MATLAB/R2015b/licenses
sudo cp libmwservices.so /usr/local/MATLAB/R2015b/bin/glnxa64
sudo cp libcufft.so.7.0.28 /usr/local/MATLAB/R2015b/bin/glnxa64
以上这些实际上是我缺少的破解过程,不是MATLAB system error的解决办法。
3)解决matlab登录后提示内部错误的情况
cd /usr/local/MATLAB/R2015b/sys/os/glnxa64
mv libstdc++.so.6 libstdc++.so.6.old
4)在任意目录运行matlab
sudo ln -s /usr/local/MATLAB/R2015b/bin/matlab /usr/local/bin/matlab
5)卸载matlab
sudo rm -rf /usr/local/MATLAB/R2015b
5.其他错误
Ubuntu 16.04出现:Problem executing scripts APT::Update::Post-Invoke-Success \'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi\'
复制代码
在运行sudo apt-get update时出现
‘Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success
\'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;
then appstreamcli refresh > /dev/null;
fi\'
E: Sub-process returned an error code’,
解决方法如下:
sudo pkill -KILL appstreamcli
wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb
matlab播放视频出错,提示
‘Error using VideoReader/init (line 619)
Failed to initialize internal resources.’
解决方案:
sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
sudo apt-get install gstreamer0.10-tools
sudo apt-get install gstreamer0.10-plugins-good
6.caffe调用matlab
1)make matcaffe
2)make mattest
出错,则在mattext之前在命令行先输入
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/usr/local/cuda-8.0/lib64
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4:/usr/lib/x86_64-linux-gnu/libopencv_imgproc.so.2.4:/usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4:/usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/libfreetype.so.6
2)在caffe根目录下运行matlab程序,提示错误:
Invalid MEX-file \'/home/zzq/MatlabProjects/DCL_Saliency/deeplab/matlab/caffe/caffe.mexa64\': libcudart.so.7.5:
cannot open shared object file: No such file or directory
解决方案:
因为安装的是cuda-8.0,所以当前系统中/usr/local/cuda-8.0/lib中的文件是libcudart.so.8.0,不能直接使用,所以要将其复制保存为libcudart.so.7.5:
sudo cp /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/local/cuda-8.0/lib64/libcudart.so.7.5
3)在caffe根目录下运行matlab程序,提示错误:
Invalid MEX-file \'/home/zzq/MatlabProjects/DCL_Saliency/deeplab/matlab/caffe/caffe.mexa64\': libcublas.so.7.5:
cannot open shared object file: No such file or directory
======================================================================================
matlab运行加载caffe模型出错:
usr/local/MATLAB/R2015b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.15\' not found
执行:
sudo ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21 /usr/local/MATLAB/R2013a/sys/os/glnxa64/libstdc++.so.6
请发表评论