Editing Installing Mac OS X Bundle

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
#REDIRECT [[Installing MacOS X Bundle]]
+
The steps below will result in successful install Octave and Gnuplot. This approach should be avoided on systems with a [[Octave_for_MacOS_X#Package_Managers|package manager]] such as [http://www.finkproject.org/ Fink], [http://www.macports.org/ Macports], or [https://github.com/mxcl/homebrew Homebrew] installed. These instructions were originally copied form [http://bl.anthonysutardja.com/post/24020287559/installing-octave-on-osx-lion Anthony Sutardja].
 +
 
 +
* [http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary/2011-04-21%20binary%20of%20Octave%203.4.0/ Download the latest OSX binary of Octave]. This is everything that you need to download. Gnuplot, as well as AquaTerm, are included within the dmg.
 +
 
 +
* Mount the image and copy Octave.app to your <code>/Applications/</code> folder.
 +
 
 +
* Inside the Octave image, mount the <code>gnuplot-4.4.3-aqua-i386.dmg</code> which is located in the Extras folder and copy <code>gnuplot.app</code> into your <code>/Applications/</code> folder as well.
 +
 
 +
* In your favorite text editor, open up <code>/Applications/Gnuplot.app/Contents/Resources/bin/gnuplot</code> and replace every instance of <code>DYLD_LIBRARY_PATH</code> with <code>DYLD_FALLBACK_LIBRARY_PATH</code>. There should be four matches that need to be replaced. In vim, you can do this with the following command:
 +
 
 +
:%s/DYLD_LIBRARY_PATH/DYLD_FALLBACK_LIBRARY_PATH/g
 +
 
 +
* ''Optional'': If you want to run Octave from the commandline, you can make an alias to one of the binaries. I would put them somewhere separate from all your other binaries (e.g. <code>~/bin/</code>). If you choose to do this, you must add <code>/Users/YourAccount/bin/</code> to your <code>PATH</code> (as well as making the bin folder). To do this, add the line <code>PATH=/Users/YourAccount/bin:$PATH</code> to your <code>.bash_profile</code> located in your home directory. Then make the following aliases:
 +
 
 +
<pre>sudo ln -sf /Applications/gnuplot.app/Contents/Resources/bin/gnuplot /Users/YourAccount/bin/gnuplot
 +
sudo ln -sf /Applications/Octave.app/Contents/Resources/bin/octave /Users/YourAccount/bin/octave</pre>
 +
 
 +
And that’s it! You can type octave at the command-line of Terminal.app to enter the Octave shell.

Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)