Building for Macintosh platform: Difference between revisions

Jump to navigation Jump to search
Mark as outdated.
(Mark as outdated.)
 
(10 intermediate revisions by 3 users not shown)
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=
{{Warning|This page is outdated (October 2019).  For more recent information, see [[Octave for macOS]].}}
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/
==Using package manager==
    http://fink.sourceforge.net/ (specifically http://pdb.finkproject.org/pdb/package.php/octave)
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://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==
 
=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 20: Line 15:
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 115: Line 110:
(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 219: Line 214:
     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 261: Line 256:
     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:Mac]]
[[Category:Outdated pages]]

Navigation menu