Mac 上的 mathematica 远程内核 [英] mathematica remote kernel on macs
问题描述
我正在尝试在两台 Mac 之间运行远程 mathematica 内核.
I am trying to run a remote mathematica kernel between two macs.
在内核配置选项下对于内核程序,我有:/Applications/Mathematica.app/Contents/MacOS/MathKernel
Under Kernel Configuration Options For kernel program I have: /Applications/Mathematica.app/Contents/MacOS/MathKernel
MLOpen 的参数:-LinkMode 监听-LinkProtocol TCPIP-LinkOptions MLDontInteract
The arguments of MLOpen: -LinkMode Listen -LinkProtocol TCPIP -LinkOptions MLDontInteract
启动命令是:java
-jar mathssh
username@xxxxxx.dynamic.uiowa.edu/usr/local/bin/math -mathlink -LinkMode连接 -LinkProtocol TCPIP -LinkName "linkname
" -LinkHost ipaddress
The launch command is:
java
-jar mathssh
username@xxxxxx.dynamic.uiowa.edu /usr/local/bin/math -mathlink -LinkMode
Connect -LinkProtocol TCPIP -LinkName "linkname
" -LinkHost ipaddress
当我使用这个远程内核时(例如 2+2 没有给出结果),我收到错误消息:内核 Thomas Machine 无法连接到前端.(错误 = MLECONNECT.您应该尝试在前端之外运行内核连接."
When i use this remote kernel (for instance 2+2 does not give a result) I get the error message: "The kernel Thomas Machine failed to connect to the front end. (Error = MLECONNECT). You should try running the kernel connection outside the front end."
似乎 Mathematica 甚至没有在远程机器上打开,因为我使用了top"并且在我启动远程内核后看不到它运行.
It seems that Mathematica is not even opening on the remote machine since I used "top" and do not see it running after I start the remote kernel.
任何帮助将不胜感激.
推荐答案
我刚刚在 8.0.1 中尝试过这个——这是我的配置(使用伪造的机器/用户名):
I just tried this with 8.0.1 -- here's my config (with bogus machine/user names):
特别是 /usr/local/bin/math
看起来很可疑.您通常不需要使用高级设置.
In particular the /usr/local/bin/math
looks suspicious. You generally shouldn't need to use the advanced settings.
放到命令行并尝试:
ssh username@xxxxxx.dynamic.uiowa.edu /usr/local/bin/math
看看你是否得到了 Mathematica 提示并且可以在那里计算 1+1
.
and see if you get a Mathematica prompt and can evaluate 1+1
there.
这篇关于Mac 上的 mathematica 远程内核的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!