mathematica remote kernel on macs

僤鯓⒐⒋嵵緔 提交于 2020-01-02 03:46:25

问题


I am trying to run a remote mathematica kernel between two macs.

Under Kernel Configuration Options For kernel program I have: /Applications/Mathematica.app/Contents/MacOS/MathKernel

The arguments of MLOpen: -LinkMode Listen -LinkProtocol TCPIP -LinkOptions MLDontInteract

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

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."

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.

Any help would be greatly appreciated.


回答1:


I just tried this with 8.0.1 -- here's my config (with bogus machine/user names):

In particular the /usr/local/bin/math looks suspicious. You generally shouldn't need to use the advanced settings.

Drop to a command line and try:

ssh username@xxxxxx.dynamic.uiowa.edu /usr/local/bin/math

and see if you get a Mathematica prompt and can evaluate 1+1 there.



来源:https://stackoverflow.com/questions/7615660/mathematica-remote-kernel-on-macs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!