Editing Building for Macintosh platform
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
or, How to Minimalistically GNUify Mac OS X For Building Octave From Scratch | or, How to Minimalistically GNUify Mac OS X For Building Octave From Scratch | ||
=Binary-Releases= | |||
If you are looking for an already build version of Octave for Mac OS X then visit one of the following web pages that do provide a binary-release of octave and follow the instructions for installing Octave from these web pages: | |||
http://octave.sourceforge.net/ | |||
http://fink.sourceforge.net/ (specifically http://pdb.finkproject.org/pdb/package.php/octave) | |||
http://www.macports.org/ (specifically https://trac.macports.org/browser/trunk/dports/math/octave/Portfile) | |||
http://hpc.sourceforge.net/#octave | |||
At the SourceForge link, you can obtain Octave as a .dmg file, as well as a .dmg of the most recent build of Gnuplot. This should be good enough for most users. Also consider AquaTerm for displaying graphs instead of X11. (Aquaterm is included in gnuplot in the extras folder of the Octave install image, and if you install it separately there might be issues.) | |||
=Source-Compilation= | |||
Before building Octave from scratch on a Mac OS X platform you need to install several GNU programs and libraries that are not shipped with your Mac. This description will guide you through the procedure of GNUifying your Mac OS X step by step, so that you are then be able to configure, compile, install and run the Octave program. | Before building Octave from scratch on a Mac OS X platform you need to install several GNU programs and libraries that are not shipped with your Mac. This description will guide you through the procedure of GNUifying your Mac OS X step by step, so that you are then be able to configure, compile, install and run the Octave program. | ||
Line 15: | Line 20: | ||
The scripts used to build the octave-forge Octave.app can be found in the [http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/admin/MacOSX/ sourceforge subversion repository]. | The scripts used to build the octave-forge Octave.app can be found in the [http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/admin/MacOSX/ sourceforge subversion repository]. | ||
==Step-By-Step Procedure== | |||
(1) Install the Xcode-Tools (ie. the gcc-suite, the c-library and other tools) that are shipped with your computer from "Mac OS X Install Disc 1". Optionally you can get the latest version of these tools from http://developer.apple.com/tools/download. Follow the instructions from the "About Xcode Tools.pdf" file on how to install these tools. Make sure that you have installed the latest releases. | (1) Install the Xcode-Tools (ie. the gcc-suite, the c-library and other tools) that are shipped with your computer from "Mac OS X Install Disc 1". Optionally you can get the latest version of these tools from http://developer.apple.com/tools/download. Follow the instructions from the "About Xcode Tools.pdf" file on how to install these tools. Make sure that you have installed the latest releases. | ||
Line 110: | Line 115: | ||
(12) Enjoy using Octave! | (12) Enjoy using Octave! | ||
==Extensions== | |||
For using the full functionality of Octave some more source-packages need to be installed on your Mac. | For using the full functionality of Octave some more source-packages need to be installed on your Mac. | ||
Line 214: | Line 219: | ||
ranlib $INSTALL_DIR/lib/libmetis.a | ranlib $INSTALL_DIR/lib/libmetis.a | ||
==Troubleshooting== | |||
(1) There are reports on the mailing lists of Octave, that automake also needs to be updated because the version that is shipped with Mac OS X doesn't work (especially with G5 Macs this problem may occur). So you might need to install a newer version than the one shipped with your Mac. | (1) There are reports on the mailing lists of Octave, that automake also needs to be updated because the version that is shipped with Mac OS X doesn't work (especially with G5 Macs this problem may occur). So you might need to install a newer version than the one shipped with your Mac. | ||
Line 255: | Line 260: | ||
export DYLD_LIBRARY_PATH=/sw/lib/fontconfig2/lib:/sw/lib/freetype219/lib | export DYLD_LIBRARY_PATH=/sw/lib/fontconfig2/lib:/sw/lib/freetype219/lib | ||