Installing Matlab on Mac OS X With Apple's X11
- If you don't want to use the bundled X11 for whatever reason, this guide is for you.
- Method one: Edit install script
- Right click on the "Install for OS X" in the mathworks jag update and hit "show contents"
- Open runme.txt
- Change reference at the top pointing to where X11 is to /Applications/X11
- Remove all references to OroborOSX in the rest of the file
- Run and it won't try to install X11 anymore. You may have to manually start X11
- Method two: Install manually
- Run X11 and open an xterm
- Make a directory to install into and cd to it (ex: mkdir /Applications/matlab ; cd /Applications/matlab )
- Copy license.dat to the directory you just made
- Run sudo /Volumes/MathWorks_R13_N/install, where N is the cd #
- Run MATLABR13_Jaguar_Patch:
- It doesn't sudo before running automagically. Really dumb. Fails due to this.
- Mount disk image
- sudo /Volumes/MathWorks_Jaguar_Updater/MATLABR13_Jaguar_patch.app/Contents/MacOS/MATLABR13
- Point it to your actual matlab instillation
- Repeat for CD's 2 and 3.
- Final Steps
- go to matlab/bin (the bin directory under the directory you installed it to)
- right-click on LaunchMATLAB and select "Show Package Contents"
- right-click on the file "launch_matlab.sh" and select "open with" and "other." At this point you can select any text editor, such as "TextEdit" or whatever is your favorite.
- Change the "grep OroborOSX" to read "grep X11" -- "ps xc" lists running programs, and "grep X11" searches the list for the phrase "X11". If it's not found, then the return will be blank and the if goes to the else.
- after "sleeptime=60" in the "else" block, insert "osascript -e 'tell application "X11" to activate'" so that it starts X11 if it is not already running.
- Finally, comment out "osascript Contents/launch_oroborosx" further down by placing a "# " in front of it.
- The LaunchMATLAB icon should now try and start the right X11 and open matlab for you!
- Have, um, fun with Matlab. I highly recommend trying Python with the Numeric and Scientific extensions. Also glance at SciPy. Much more pleasant!
Nathaniel Grady's Homepage