Editing Building for Macintosh platform

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 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


{{Warning|This page is outdated (October 2019).  For more recent information, see [[Octave for macOS]].}}
=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:


==Using package manager==
    http://octave.sourceforge.net/
If you are looking for an already built version of Octave for Mac OS X, at the present there doesn't exist a reliable one. Instead, [[Octave for MacOS X|use a package manager]].
    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


==Source-Compilation==
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===
==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===
==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===
==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 256: Line 261:
     export DYLD_LIBRARY_PATH=/sw/lib/fontconfig2/lib:/sw/lib/freetype219/lib
     export DYLD_LIBRARY_PATH=/sw/lib/fontconfig2/lib:/sw/lib/freetype219/lib


[[Category:Outdated pages]]
[[Category:Mac]]
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)

Template used on this page: