matlab R2015b在ubuntu 14.04环境下的安装
挂载及运行安装程序
sudo mkidr /media/matlab
mount -o loop matlab_R2015b.iso /media/matlab
cd /media/matlab
sudo ./install
error1: Activation cannot proceed. You may Set an X11 display, and restart the activation process
solution:
sudo -E ./install //use -E to keep env_varies , neverless sudo will clear all the varies of user after installation complete
sudo cp Crack_dir/R2015b/bin/glnxa64/*.so* /usr/local/MATLAB/R2015b/bin/glnxa64/
sudo vim ~/.bashrc
export PATH=/usr/local/MATLAB/R2015b/bin:$PATH
source ~/.bashrc
sudo -E matlab
active program without conect to intenet and choose “ license_standalone.lic” in the crack_dir
error2:cannot open matlab properly, wait for a uncertain time!
描述:添加完环境变量后,matlab命令之后,貌似正在打开matlab软件,因为可以看见正在打开matlab的那个小窗口。但是等了一晚上都没有正常打开。
Solution:
sudo apt-get install matlab-support
rm –rf ~/.matlab/R2015b
sudo chown your_user_name –R ~/.matlab
第三步应该是最有效的,因为On some distributions, launching MATLAB with sudo will create MATLAB preferences in your home folder that are owned by root. You will then not able to launch MATLAB as a standard user as MATLAB will not be able to read it's own preferences.
注意:install matlab-support的时候千万要小心,可能会带来系统莫名奇妙卡死
referred from the following blog
refer1
refer2
VideoReader problem
matlab Error using VideoReader/init (line 619) Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties
solution:
sudo apt-add-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg
then reboot matlab, it will trick.
Reference:
refer1
refer2
使用非桌面版matlab
matlab -nodesktop //非图形化界面运行matlab
matlab debug without desktop //dbstop