问题
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