Tuesday, August 21, 2012
Installing Octave 3.4.0 on Mac OS X 10.7.4
I got various errors trying to get Octave 3.4.0 to graph via gnuplot on Mac OS X 10.7.4, but here is how I finally got it to work:
== Install X11 == (Not sure if this step is needed, but I did it anyway.) Install XQuartz-2.7.2.dmg available from http://xquartz.macosforge.org/landing/ == Install AcquaTerm == Install AquaTerm1.0.1.dmg available from http://sourceforge.net/projects/aquaterm/files/AquaTerm/ == Install readline == (Reference: http://bhou.wordpress.com/2011/09/13/how-to-install-gnuplot-in-mac-os-x-lion/) Download the latest ReadLine lib source (readline-6.2) Create a folder in any place you want to install readline lib (except /usr/local/), Example: /Users/username/Local unzip the lib downloaded and type the command in a console: ./configure --prefix=<the path of the folder you just created> make install Usually you will have an error that use -dynamiclib rather than -dynamic You need to go into the sub folder shlib in the ReadLine source folder and edit Makefile, search -dynamic and change it to -dynamiclib make clean sudo make install == Install gnuplot == (Reference: http://www.macresearch.org/gnuplot-aquaterm-snow-leopard-1061) Download the latest gnuplot source from: http://sourceforge.net/projects/gnuplot/files/gnuplot/ # Setting to 32 bit as AcquaTerm doesn't have 64-bit support export LDFLAGS=-m32 export CFLAGS=-m32 ./configure --with-readline=/Users/username/local/ --without-tutorial --without-x make sudo make install == Install Octave == Install octave-3.4.0-i386.dmg available from http://s3.amazonaws.com/mlclass-resources/software/octave-3.4.0-i386.dmg == Verify installation == /Applications/Octave.app/Contents/Resources/bin/octave octave-3.4.0:1> sombrero() (Should see a nice graph displayed) That's all and good luck!