ubuntu下matlab,ubuntu下安装matlab(转)

ubuntu下安装matlab(转)

(2009-03-13 22:54:58)

标签:

杂谈

分类:

收获

()曾经试过很多次,都没有成功,连安装的界面都进不去。原因是在64位的机器上装了64位的系统,但是matlab的各种版本似乎都对64bit非常反感,只好作罢。毕竟那个时候还有windows嘛,在linux下装matlab只是兴趣使然。

昨天重装了系统,彻底的没有windows了。今天尝试了很久,终于装上了。简单记录下过程,今后重装还有参考

1、一定装7.0及以上版本。6.5的能进入安装界面,但是在验证key文件的时候总是过不去。网上有人提出了修改系统时间的办法,试过了,未遂;尝试7.0,没有问题;

2、安装过程很顺利,运行时会出现比较大的问题:simulink无法启动,而且输入的命令会直接导致程序崩溃,ctrl

c都无法响应,只能用kill -9的办法。网上提供了一套解决方案,copy如下:

simulink有问题,下面是各种错误信息的解决方法。

??? Can't load '/usr/local/matlab/bin/glnx86/libmwsimulink.so':

libXft.so.1: cannot open shared object file: No such file or

directory

Solution:

[root@localhost matlab]# updatedb

&& locate libXft.so

/usr/lib/libXft.so

/usr/lib/libXft.so.2

/usr/lib/libXft.so.2.1.2

[root@localhost matlab]# ln -s /usr/lib/libXft.so.2

/usr/lib/libXft.so.1

然后会出现

??? Can't load

'/usr/local/matlab/bin/glnx86/libmwsimulink.so':

/usr/local/matlab/bin/glnx86/libqt-mt.so.3: undefined symbol:

XftFreeTypeOpen

Solution :

# install qt 3.3

# mv /usr/local/matlab/bin/glnx86/libqt-mt.so.3

/usr/local/matlab/bin/glnx86/libqt-mt.so.3_back

# ln -s /usr/lib/libqt-mt.so.3.3

/usr/local/matlab/bin/glnx86/libqt-mt.so.3

然后又会出现

/usr/local/matlab/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1:

version `GCC_4.2.0' not found (required by

/usr/lib/libstdc++.so.6)

或者

/usr/local/matlab/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1:

version `GCC_3.3' not found (required by

/usr/lib/libstdc++.so.6)

Solution :

# find libgcc_s.so.1 for 3.3 or 4.2

or a one for all way

Matlab was built with a different version of gcc (3.2.3 in the case

of R14SP2), whereas Fedora Core 5 has gcc 4.1.0. The following

trick is alluded to in the file

${MATLAB}/sys/os/glnx86/README.libstdc++, but you need to be the

root user. Type these commands ...

# cd $MATLAB

# cd sys/os/glnx86

# mkdir old

# mv libstdc++.* libg2c.* libgcc_s* old

When matlab is restarted, it will then use the system libraries

instead of those supplied by Mathworks. And then all is fine and

well with the world. Note that if this sort of thing happens with

an x86-64 machine, then the directory in question would be

${MATLAB}/sys/os/glnxa64 instead of ${MATLAB}/sys/os/glnx86.

还有一个搜索到的:

如果不能使用simulink,参照如下方法(网上搜索到的)

This december, I was migrating some of the nodes to Fedora Core 6.

Those machines were primarily windows 2000 nodes and serve students

in electronics during their practical classes.

An error status was returned by the program ’xsetup’, the X Window

System version of install. The following messages were written to

standard error:

question 1:

/tmp/2493tmwinstall/update/bin/glnx86/xsetup: error while loading

shared libraries: libXp.so.6: cannot open shared object file: No

such fileor directory

solution: yum install libXp-devel

question 2:Fixing simulink:Warning: Could not access OpenGL

library

solution: yum install libXpm-devel mesa-libGL-devel

mesa-libGLU-devel

GCC 3.4 dependencies for simulink

[root@localhost

matlab]ldd/usr/local/matlab/bin/glnx86/glren.so

/usr/local/matlab/bin/glnx86/glren.so

/usr/local/matlab/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1:

version `GCC_4.2.0’ not found (required by

/usr/lib/libstdc++.so.6)

/usr/local/matlab/bin/glnx86/glren.so:

/usr/local/matlab/bin/glnx86/../../sys/os/glnx86/libgcc_s.so.1:

version `GCC_3.3’ not found (required by

/usr/lib/libstdc++.so.6)........

Solution: yum install compat-gcc*

cd /usr/local/matlab/sys/os/glnx86

mv libgcc_s.so.1 libgcc_s.so.1_back

ln -s /lib/libgcc_s.so.1 libgcc_s.so.1

Question 3:broken symbolic link with simulink Part One: Can’t

load’/usr/local/matlab/bin/glnx86/libmwsimulink.so’: libXft.so.1:

cannot open shared object file: No such file or directory

Solution:

[root@localhost matlab]# updatedb

&& locate libXft.so

/usr/lib/libXft.so

/usr/lib/libXft.so.2

/usr/lib/libXft.so.2.1.2

[root@localhost matlab]# ln -s /usr/lib/libXft.so.2

/usr/lib/libXft.so.1

Question 4: broken symbolic link with simulink Part Two: Can’t load

’/usr/local/matlab/bin/glnx86/libmwsimulink.so’:/usr/local/matlab/bin/glnx86/libqt-mt.so.3:

undefined symbol: XftFreeTypeOpen

Solution:

yum install qt

mv/usr/local/matlab/bin/glnx86/libqt-mt.so.3

usr/local/matlab/bin/glnx86/libqt-mt.so.3_back

ln -s /usr/lib/qt-3.3/lib/libqt-mt.so.3

/usr/local/matlab/bin/glnx86/libqt-mt.so.3

至此,simulink终于可以用了。测试通过。

不知道其他模块是否还有问题。暂时只想到这几个,以后再多测试测试

一个总体的感觉就是网络上的牛人太多了。上面的解决办法我是全然没有看懂的,但是照猫画虎下来,居然通过了。这些牛人是怎么找到门路的呢?

分享:

a4c26d1e5885305701be709a3d33442f.png喜欢

0

a4c26d1e5885305701be709a3d33442f.png赠金笔

加载中,请稍候......

评论加载中,请稍候...

发评论

登录名: 密码: 找回密码 注册记住登录状态

昵   称:

评论并转载此博文

a4c26d1e5885305701be709a3d33442f.png

发评论

以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值