octave-maintainers
[Top][All Lists]
Advanced

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

Re: attempt to build on Mac OS 10.6 (Snow Leopard)


From: Joel LeBlanc
Subject: Re: attempt to build on Mac OS 10.6 (Snow Leopard)
Date: Sun, 30 Aug 2009 18:10:57 -0400

Ben,

I am trying to build right now, but the configure went smooth.  Here is what I used:

./autogen.sh

# Apple's vecLib:
export blas='--with-lapack=-Wl,-framework,Accelerate,-dylib_file,/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib:/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib --with-blas=-Wl,-framework,Accelerate,-dylib_file,/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib:/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib'


# Similar to Fink's configure
./configure --prefix=/sw FLIBS=/sw/lib/gcc4.4/lib/libgfortran.dylib F77=/sw/bin/gfortran CC=gcc-4 CPP=cpp-4 CXX=g++-4 --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' --libexecdir='${prefix}/lib' -enable-shared -enable-dl --disable-static --without-mpi --with-hdf5 --with-fftw CPPFLAGS="-I/sw/include -I/sw/include/freetype2 -I/sw/lib/flex/include" FFLAGS="-ff2c" LDFLAGS="-L/sw/lib/fltk-aqua/lib -L/sw/lib/flex/lib -L/sw/lib/gcc4.4/lib/ -L/sw/lib -lgfortran -lGraphicsMagick -lfltk_gl -lfltk -lpthread" $blas

Have you updated your fink yet.  I found that FinkCommander has issues with 10.6, so you may need to do this from the command line.  I 1st installed the new XCode (an "additional install").  Then I had to reindex fink (fink index).  I think fink index failed the first time so I needed to run (fink index -f).  Then I ran fink reinstall fink, to get fink built under 10.6.  Finally, I ran fink update fink, to get the latest release.

~Joel

P.S. My octave build failed... Haven't looked into it yet. 

On Sun, Aug 30, 2009 at 5:03 PM, Ben Abbott <address@hidden> wrote:
When I attempt to build 3.2.x or the developers sources on Mac OS 10.6 I encounter the following configure failure.

checking for tputs in -lncurses... no
checking for tputs in -lcurses... no
checking for tputs in -ltermcap... no
checking for tputs in -lterminfo... no
checking for tputs in -ltermlib... no
configure: WARNING: I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!
checking for rl_set_keyboard_input_timeout in -lreadline... no
configure: WARNING: I need GNU Readline 4.2 or later
configure: error: this is fatal unless you specify --disable-readline

find /sw/lib -name libncurses\.\*
/sw/lib/libncurses.5.dylib
/sw/lib/libncurses.dylib
/sw/lib/libncurses.dylib.5
/sw/lib/ncurses/libncurses.5.dylib
/sw/lib/ncurses/libncurses.a
/sw/lib/ncurses/libncurses.dylib
find /sw/lib -name libreadline\.\*
/sw/lib/libreadline.4.2.dylib
/sw/lib/libreadline.4.3.dylib
/sw/lib/libreadline.4.dylib
/sw/lib/libreadline.5.0.dylib
/sw/lib/libreadline.5.dylib
/sw/lib/libreadline.a
/sw/lib/libreadline.dylib

When I configure 3.0.5 on Mac OS 10.6, I don't see this problem

checking for tputs in -lncurses... yes
checking for rl_set_keyboard_input_timeout in -lreadline... yes

The script I used to configure includes the part below, which is derived from Octave package from Fink.

a='--with-lapack=/sw/lib/liblapack.dylib --with-blas=/sw/lib/libf77blas.dylib'
prefix=/sw
FLIBDIR="/sw/lib/gcc4.4/lib"
./configure FLIBS="${FLIBDIR}/libgfortran.dylib" --prefix=/sw F77=/sw/bin/gfortran --host=i386-apple-darwin --build=i386-apple-darwin --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' --libexecdir='${prefix}/lib' --enable-shared --enable-dl --disable-static --without-mpi --with-hdf5 --with-fftw CPPFLAGS="-g -I/sw/include -I/sw/include/freetype2" FFLAGS="-g" LDFLAGS="-L/sw/lib/fltk-aqua/lib -L/sw/lib -lGraphicsMagick -lfltk_gl -lfltk -lpthread" $a


I'm at a loss to determine what I need to do. Anyone have some insight here?

Thanks
Ben


reply via email to

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