Notebook
Home page > MAC OS X > Octave under MAC OS

Octave under MAC OS

Thursday 30 December 2010, by Tital

Using fink

Octave may be installed using fink:

sudo fink install octave

It will be available from /sw/bin/octave

If you want to compile dynamic-load modules using mkoctfile, add the following lines to the mkoctfile script file /sw/bin/mkoctfile just after the commented lines

## You should have received a copy of the GNU General Public License
## along with Octave; see the file COPYING. If not, see
## http://www.gnu.org/licenses.
  1. CFLAGS="-m32 {CFLAGS}</span>"</span></div></li> <li style="font-weight: normal; vertical-align:top;"><div style=""><span style="color: #007800;">FFLAGS</span>=<span style="color: #ff0000;">"-m32 <span style="color: #007800;">FFLAGS"
  2. CPPFLAGS="-m32 {CPPFLAGS}</span>"</span></div></li> <li style="font-weight: normal; vertical-align:top;"><div style=""><span style="color: #007800;">CXXFLAGS</span>=<span style="color: #ff0000;">"-m32 <span style="color: #007800;">CXXFLAGS"
  3. LDFLAGS="-m32 $LDFLAGS"

Why ? because fink will compile octave in 32bits whereas the default compiling environment is 64bits. So you need to specify these flags to mkoctfiles.

Octave.app

Same problem, look at http://sourceforge.net/projects/oct...

netcdf package for octave

* Using fink

sudo fink install octave-forge-octcdf

* Using Octave.app : download octcdf package from http://octave.sourceforge.net/octcd.... May have some version problems.

netcdf command crashes if the given filename is too long

SPIP | template | | Site Map | Follow-up of the site's activity RSS 2.0