octave-maintainers
[Top][All Lists]
Advanced

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

Re: Install status on Mac OS X 10.6.2


From: Todd Rovito
Subject: Re: Install status on Mac OS X 10.6.2
Date: Sun, 10 Jan 2010 22:59:41 -1000

On Fri, Jan 8, 2010 at 7:21 PM, Michael D Godfrey
<address@hidden> wrote:
> The attached file documents the steps that
> led to a reasonably functional install on my
> MacBook Pro running OS X 19.6.2.
>
> The remaining work of installing additional packages
> should be pretty straightforward.
>
> Aside from boring things like sed and flex, the somewhat
> surprising problem was that none of the available
> Fortran compilers worked reliably with -O2 (actually
> I changed all of the compiler options from -O2 to -O0
> so the C and C++ compilers could also be at fault).
>
> For now I plan to leave the optimization set to -O0.
> When things are more settled will be good to try -O2
> again.
Michael,
   Thanks for these instructions I gave them a spin over the weekend
and didn't get Octave to compile.  I had to install a bunch of stuff
that you didn't have listed (mainly the autoconf, automake, and
libtool).  I checked out the latest Octave Source code.  Here is what
I installed:
autoconf-2.65.tar.bz2
automake-1.11.tar.bz2
fltk-1.1.10-source.tar.bz2
fontconfig-2.8.0.tar.bz2
freetype-2.3.9.tar.bz2
libtool-2.2.4.tar.bz2
libxml2-sources-2.7.6.tar.gz
m4-1.4.13.tar.bz2
pcre-8.00.tar.bz2
pkg-config-0.23.tar.gz
readline-6.1.tar.gz
tcltk-8.5.5-x11.dmg
flex-2.5.35.tar.gz
sed-4.2.tar.gz
gfortran from here http://r.research.att.com/gfortran-42-5646.pkg

sed, bison, and flex were installed in /usr/local.

I built everything else with a prefix command of /tmp/mg then used the
following .profile:
export PATH=/tmp/mg/bin:$PATH:/usr/local/bin:/usr/X11R6/bin
export CFLAGS="-I/tmp/mg/include"
export CPPFLAGS="-I/tmp/mg/include"
export LDFLAGS="-L/usr/local/lib -L/tmp/mg/lib"

# add MacTex to the path
export PATH=$PATH:/usr/local/texlive/2008/bin/universal-darwin

My path command has /usr/local/bin _AFTER_ /usr/bin here is my PATH
echo $PATH
/tmp/mg/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/texlive/2008/bin/universal-darwin


The final error I got was
checking for Fortran 77 libraries of gfortran -ff2c...
-L/usr/local/lib -L/tmp/mg/lib -L/usr/lib/i686-apple-darwin10/4.2.1
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1
-L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../.. -lm -lgfortranbegin
-lgfortran
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... unknown
configure: WARNING: unknown Fortran name-mangling scheme
configure: defining FFLAGS to be -O
checking whether gfortran -ff2c generates correct size integers... no
configure: error: your Fortran compiler must have default integers
that are the same size as octave_idx_type (int).  See the file INSTALL
for more information.


In addition I tried the Octave-Forge 3.2.3 build script with the
gfortran compiler and got mixed results. I don't think I have it quite
right just yet so I will wait until latter to report my results.

Anybody have any idea what I am doing wrong?  I am fairly new to
building Octave on the Mac.  Thanks for the help.

Attachment: config.log
Description: Binary data


reply via email to

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