免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1145 | 回复: 0
打印 上一主题 下一主题

linux下matlab的simulink的使用 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-25 10:16 |只看该作者 |倒序浏览
matlab是我在linux下装的一款唯一的盗版软件,但是没有办法,要上这门课,而且matlab对于我们专业还是挺重要的,所以就装上了matlab,但是装好后,是需要设置才能正常使用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:
问题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
问题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
问题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
问题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了,祝大家成功!
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/49908/showart_430162.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP