Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mathematica remote kernel on macs

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 [email protected] /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.

like image 712
BeauGeste Avatar asked Sep 30 '11 20:09

BeauGeste


1 Answers

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

kernel config dialog

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 [email protected] /usr/local/bin/math

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

like image 72
Brett Champion Avatar answered Oct 17 '22 14:10

Brett Champion