Installing Mac OS X Bundle

From Octave
Jump to navigation Jump to search

The steps below will result in successful install Octave and Gnuplot. This approach should be avoided on systems with a package manager such as Fink, Macports, or Homebrew installed. These instructions were originally copied form Anthony Sutardja.

  • Mount the image and copy Octave.app to your /Applications/ folder.
  • Inside the Octave image, mount the gnuplot-4.4.3-aqua-i386.dmg which is located in the Extras folder and copy gnuplot.app into your /Applications/ folder as well.
  • In your favorite text editor, open up /Applications/Gnuplot.app/Contents/Resources/bin/gnuplot and replace every instance of DYLD_LIBRARY_PATH with DYLD_FALLBACK_LIBRARY_PATH. 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. ~/bin/). If you choose to do this, you must add /Users/YourAccount/bin/ to your PATH (as well as making the bin folder). To do this, add the line PATH=/Users/YourAccount/bin:$PATH to your .bash_profile located in your home directory. Then make the following aliases:
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

And that’s it! You can type octave at the command-line of Terminal.app to enter the Octave shell.