LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 964|回复: 2

mahtematica不能干活

[复制链接]
发表于 2005-8-5 11:03:24 | 显示全部楼层 |阅读模式
安装时出现的情况

Type the directory path in which the Mathematica scripts will be created,
or press ENTER to select /usr/local/bin:
>

Installation failed. See /usr/local/Wolfram/Mathematica/5.0/InstallErrors.

======================================
Installerrors这是安装后/usr/local/Wolfram/Mathematica/5.0/InstallErrors里面的内容:

/usr/local/Wolfram/Mathematica/5.0/SystemFiles/Kernel/Binaries/Linux/MathKernel: error while loading shared libraries: /usr/local/Wolfram/Mathematica/5.0/SystemFiles/Libraries/Linux/libmkl.so: cannot restore segment prot after reloc: Permission denied


我可以打开mathematica,但是
让它干活时出现下面错误,

弹出一对话框:stderr

/usr/local/Wolfram/Mathematica/5.0/System Files/kernel/Binaries/Linux/Mathekernel:error while loading shared libraries: /usr/local/Wolfram/Mathematica/5.0/System Files/Libraries/Linux/libmkl.so: cannot restore segment prot after reloc: Permission denied.
发表于 2006-9-29 19:27:16 | 显示全部楼层
the latest releases of Linux distributions incorporate the mandatory access control architecture SELinux of the NSA into the Linux kernels. More information on SELinux can be found at the following link:

http://www.nsa.gov/selinux/info/faq.cfm

If you receive the error message Cannot restore segment prot after reloc: Permission denied when launching Mathematica, this means the SELinux policy is enforced and the security context of Mathematica libraries is not properly set. To correct this issue, you will need to change the security context by running the following command. You will need to be logged on as root in order to do so.

chcon -c -v -R -u system_u -r object_r -t lib_t $InstallationDirectory/SystemFiles/Libraries/

Here $InstallationDirectory is the top level directory in which your Mathematica installation. The default value of $InstallationDirectory is /usr/local/Wolfram/Mathematica/5.2 for Mathematica 5.2
回复 支持 反对

使用道具 举报

发表于 2006-9-29 21:44:01 | 显示全部楼层
楼主安装根本就没成功。

新的 5.2 是否需要设置 SELinux 不清楚,我用 5.1 也开了 SELinux 没任何问题。楼主的问题还是出在安装上。你是以 root 身份安装的吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表