个人工具
登录
查看“MATLAB”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“MATLAB”的源代码
来自Ubuntu中文
←
MATLAB
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
=== 丢失cellfun.mexglx (以及其它文件) === 如果你在一个安装有 Ubuntu (Breezy Badger) 的 x86 机器安装 Matlab (版本 7.0.1.24704 (R14) Service Pack 1),有可能会遇到文件 '''/etc/libc.so.6 '''的权限问题。这一般是由于用户没有执行权限,而这又是一些脚本所需要的。当一些脚本(安装和开始脚本)尝试查询'''libc'''文件的版本的时候,得到的返回值是'''empty strings'''。由于这个原因,一些'''meglx'''文件没有被安装;同时当matlab启动时,脚本 '''${matlab_dir}/bin/util/oscheck.sh'''的运行会报错: <pre><nowiki> /opt/matlab/bin/util/oscheck.sh: line 134: /lib/libc.so.6: Permission denied </nowiki></pre> 文件 '''${matlab_dir}/toolbox/matlab/datatypes/cellfun.mexglx''' 没有安装,这将导致在执行简单命令,比如 '''ls''' ,的时候出现问题,例如, <pre><nowiki> >> ls ??? Attempt to execute SCRIPT cellfun as a function. Error in ==> iscellstr at 13 res = cellfun('isclass',s,'char'); Error in ==> ls at 16 if iscellstr(varargin) </nowiki></pre> 解决这个问题的办法之一是修改脚本 '''${matlab_dir}/bin/util/oscheck.sh''' 和脚本 '''${matlab_install_cd}/install''' 的两行。 '''${matlab_install_cd}/install '''的697行 <pre><nowiki> ver=`strings /lib/libc.so.6 | head -n 1 | sed -e "s/<sup>[</sup>0-9]*//" -e "s/[ ,].*$//"` </nowiki></pre> '''${matlab_dir}/bin/util/oscheck.sh '''的134行 <pre><nowiki> ver=`/lib/libc.so.6 | head -n 1 | sed -e "s/<sup>[</sup>0-9]*//" -e "s/[ ,].*$//"` </nowiki></pre> 应当使用下列行来替代 <pre><nowiki> ver=`strings /lib/libc.so.6 | grep "GNU C Library" | sed -e "s/<sup>[</sup>0-9]*//" -e "s/[ ,].*$//"` </nowiki></pre> 对于一个 64 位机器,你应当必须编辑 install 的 713 行和 oscheck.sh 脚本的 150 行, respectively. 这些改变和上面描述的是相同的。 The need to edit an install script will necessitate copying the CD to the hard disk as described in a previous section. A more detailed explanation can be found [http://www.cfar.umd.edu/users/aravinds/tools.html#install_matlab here]. This could help explain other problems with other missing or improperly linked '''.mexglx''' files.
返回至
MATLAB
。