help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dgamln error compiling on Mac OS X


From: Jonathan Stickel
Subject: Re: dgamln error compiling on Mac OS X
Date: Thu, 26 Jul 2007 08:30:01 -0600
User-agent: Thunderbird 2.0.0.5 (Macintosh/20070716)

Jonathan Stickel wrote:
I'm getting an error trying to compile octave-2.9.12 on Mac OS X. I've used macports to install most of the dependencies (I got gfortran from macresearch.org), and the end of my configure output is pasted below. The specific error is:

making dgamln.def from dgamln.f
dgamln.def-t is empty!
make[3]: *** [dgamln.def] Error 1


I managed to resolve this error and compile octave-2.9.12 on my Mac. Here is what I did:

1. made sure Xcode is installed (of course) and X11 (probably can get by with aquaterm)

2. installed gfortran from macresearch.org

3. installed all other dependencies via macports (curl, pcre, readline, fftw3, suitesparse, aquaterm, gnuplot, etc.)

4. made symlinks
/opt/local/bin/sed -> /opt/local/bin/gnused
/opt/local/bin/awk -> /opt/local/bin/gawk
(built in sed is likely the cause for the error above)

5. set the following in my .bashrc:

export C_INCLUDE_PATH=/usr/local/include:/opt/local/include
export CPLUS_INCLUDE_PATH=/usr/local/include:/opt/local/include
export LIBRARY_PATH=/usr/local/lib:/opt/local/lib
export CFLAGS="-I/usr/local/include -I/opt/local/include"
export CPPFLAGS="-I/usr/local/include -I/opt/local/include"
export LDFLAGS="-L/usr/local/lib -L/opt/local/include"
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export PATH="/usr/local/bin:$PATH"

Maybe these bash lines can be condensed, but it worked for me.

Perhaps this well be helpful for other mac users who do not want to use "octave.app" or fink.

Regards,
Jonathan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]