Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Installing and Using MATLAB with Apple's X11 beta' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Installing and Using MATLAB with Apple's X11 beta
Authored by: UltraNurd on Mar 04, '03 11:17:59PM

I intially posted this as a hint, but didn't get Rob's e-mail that I should just make it a comment...

The OS X installer that is included with the downloadable Jaguar patch for MATLAB R13, and the OS X installer that may be included on the MATLAB CDs, is designed to use OroborosX. I dumped OroborosX for Apple's much snappier X11, but the presence of /usr/X11R6/ was not enough to make the installer happy. Conveniently enough, the OS X installer is merely a wrapper AppleScript that sets a few variables and then passes them to the *nix install script. Right-click on the installer and select "Show package contents", open the Contents folder, and then open the file runme.txt in Script Editor. The stuff you'll want to comment out is all just error checking and install/setup for OroborosX. If you know you have Apple X11 installed properly, and currently have the X server open and running, comment out the following:

The entire block that begins with if xdarwinInstallerHere then
The entire block that begins with if oroborosInstallerHere then

This should prevent the installer from attempting to install OroborosX over your X11 install. Since you will probably be running the installer off of a read-only disk image or CD, you won't be able to save your changes. Instead just hit the Run button in Script Editor and follow the on-screen instructions. You'll be asked via OS X dialogs to select an install directory and a license file. Then the actual MATLAB installer will open inside of X11, and do its thing.

If you are installing off of the three CDs or disk images (mine was a networked disk image install), you may have to repeat the script editing step for the other two images/CDs. Also, make sure you do not have more than one of the images or CDs mounted at once; the method by which the AppleScript finds the install files gets screwed up when there are multiple volumes matching the expected name.

Finally, apply the Jaguar patch that you can download from MathWorks.

Depending on how you plan to use MATLAB, you will probably need to follow the instructions in this hint to automatically open X11.

I did this all using the 0.2 Apple X11 Beta and MATLAB R13. A few usage notes: I have found that I need to quit and reopen X11 before and after using MATLAB. I have not yet found the source of the problem, but if I do not do it beforehand, MATLAB opens and then crashes. Windows for MATLAB run in both X11 and a created-on-the-fly app called MATLAB (For example, SimuLink and plotted figures appear in X11, but the main interactions window stands alone.). To print from windows spawned in X11, select Print (ctrl-p) from the appropriate window's File menu, set your output to file, and save it as a PostScript file. Drag and drop that file onto a printer or printer queue inside of Print Center, and it will print. To print from windows inside of MATLAB (this includes figure windows drawn in X11), a dialog will come up in MATLAB setup to use your currently selected OS X printer.

[ Reply to This | # ]