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.
## along with Octave; see the file COPYING. If not, see
## http://www.gnu.org/licenses.
- 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"
- 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"
- 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