查看文章
 
Debian下mathematica配置
2007年04月04日 星期三 22:42
理论和实践证明:mathematica对Debian极其不友好!Shi*!

一、启动时弹出一个框,出现类似如下错误:
    unable to find font song ti with encoding CP936.Using Automatic
"continue"后,接着出现如下一堆错误:
Warning: ... found while parsing '<Key>osfHelp:Help()'
Warning: translation table syntax error: Unknown keysym name: osfActivate
.........
.........
Warning: X locale modifiers not supported, using default Segmentation fault

解决方法:
    编辑/usr/bin/mathematica5,增加以下2行:
LC_ALL="C"
LANG="C"
再执行下面的命令即可:
cd /usr/X11R6/lib/X11
ln -s     /usr/share/X11/XKeysymDB      /usr/X11R6/lib/X11/XKeysymDB
ln -s     /usr/share/X11/locale/              /usr/X11R6/lib/X11/locale

二、解决SHIFT-ENTER不能运行,BackSpace键、小键盘不能用的问题:
        编辑这个文件:TopDirectory/SystemFiles/FrontEnd/SystemResources/X/XMathematica
(TopDirectory是mathematica安装目录,可能是/usr/local/Wolfram/Mathematica/5.0,对于debian是:/usr/lib/mathematica5)
找到下面几行:
! Set these if you need to change what the FE uses for Primary (Command)
! and Secondary (Option) modifier keys.
!*primaryModifierMask: Mod2Mask
!*secondaryModifierMask: Mod3Mask
把!*secondaryModifierMask.这行的"!"去掉即可。

三、解决Mathematica编辑文本中不支持鼠标滚轮的问题
        由于此问题,总要点左键拖着bar拉程序,实在麻烦,解决它同样有些麻烦:)
1、安装
imwheel
2、下载imwheelrc (下载地址:http://physics.ou.edu/~mcraven/docs/mathmouse/imwheelrc), 把它放在$HOME目录下,并重命名为文件,即:.imwheelrc
3、下载脚本run-math.sh(下载地址:http://physics.ou.edu/~mcraven/docs/mathmouse/run-math.sh) 把它放在/usr/local/bin下并重命名为:runmathematica5(名字随便,不混淆就行)
4、编辑刚重命名的runmathematica5文件,把里面的"Mathematica"改为mathematica5.(debian中为mathematica5,其他系统视情况)
5、 然后在Mathematica程序文件"*.nb"的打开方式中自定义命令"runmathmatica5"运行之就行了
参考http://forum.ubuntu.org.cn/about60055.html&sid=6196531242efc4ccff951c78ab10cefc

四、
Xserver配置Mathematica字体

这个问题还没遇到,做个记号,参考:
http://www.nkstars.org/archive/beat/000613.html


类别:Linux||添加到搜藏 |分享到i贴吧|浏览(1067)|评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
     

   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu