Install matlab 2010a under Ubuntu 11.10

step1.Download and install 64-bit Matlab for linux, if .iso, mount isofirst

(1)create mount directory

sudomkdir mnt

(2)mount iso, e.g. matlab is m.iso

sudomount -o loop m.iso /home/lhi/mnt

(3)dir to mnt and install

cdmnt

sudo./install


Follow matlab install guide, and finish the installation, we install matlabroot in /usr/local/Matlab2010a

(4)link matlab to start it by using command matlab.

cd/usr/local/bin

ln-s matlabroot/bin/matlab matlab


Type matlab in the terminal, and if this error information comes in matlab command window:


Cannot write to preference file “matlab.prf” in “home/user/.matlab/R2010a”

The desktop configuration was not saved successfully.


解决方法:终端输入 sudo chmod 777 /home/user(自己的登录用户名)/.matlab/R2010a/matlab.prf

                            和 sudo chomd 777 /home/user(自己的登录用户名)/.matlab/R2010a


If the terminal which opens matlab  gives the following error:

/usr/local/Matlab2010a/bin/util/oscheck.sh: 605: /lib64/libc.so.6: not found

Solution: Run the following command in a terminal:

sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6

Reference:

常见问题:在终端下运行matlab出现/bin/util/oscheck.sh: 605: /lib64/libc.so.6: not found的错误。解决办法:打开终端,输入sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6后回车即可(注意自己的x86_64-linux-gnu的位置,有的可能在lib64的文件夹下面,对应修改下命令即可)。32位的命令为sudo ln -s  /lib/i386-linux-gnu/libc.so.6 /lib/libc.so.6。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值