octave-maintainers
[Top][All Lists]
Advanced

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

Re: Flex problems on Lion


From: Ben Abbott
Subject: Re: Flex problems on Lion
Date: Fri, 06 Jan 2012 08:41:33 -0500

On Jan 5, 2012, at 11:10 PM, Robinson, Melvin D wrote:

> I am having the same exact problem mentioned here: 
> http://octave.1599824.n4.nabble.com/Finally-succesful-developer-build-on-OSX-td3827592.html
>  
> The build is on Lion from stable sources.  Based on this chain I dumped the 
> Lion version of flex and installed the MacPorts version which is 2.5.35, but 
> still get the same error that I sought to fix. 
>  
> Do y'all have any more ideas?  My Fedora build goes just fine.  I checked out 
> README.MACOS to see if I missed something.

Did you run ./autogen.sh again?

I assume you have installed mercurial and are using the stable branch from the 
developers sources ? If so you might try deleting all contents that are not 
part of the archive (I occasionally have problems that this resolves).

        hg status | grep '^? ' | sed "s/^? /rm /g" | /bin/sh 

This will delete all files not part of the archive. If you do that, you'll have 
the start with "./autogen.sh".

If you still encounter the problem please attached a script of the commands you 
are running. For reference, I'm also using Macports, and am able to build with 
...

hg update -C
hg status | grep '^? ' | sed "s/^? /rm /g" | /bin/sh
./autogen.sh
VER="4.4"
export PREFIX=/opt/local
export CC=/opt/local/bin/gcc-mp-$VER
export CXX=/opt/local/bin/g++-mp-$VER
export CXXCPP="/opt/local/bin/g++-mp-$VER -E"
export F77=/opt/local/bin/gfortran-mp-$VER
export FC=/opt/local/bin/gfortran-mp-$VER
export CXXFLAGS="-pipe -O2 -g -m64 -ggdb3"
export FFLAGS="$CXXFLAGS -D_THREAD_SAFE -pthread -gstabs"
export CFLAGS="$FFLAGS -lstdc++"
export LDFLAGS=-L$PREFIX/lib
export CPPFLAGS=-I$PREFIX/include
export BLAS_LIBS="-lcblas -lf77blas -latlas"
export LAPACK_LIBS=-llapack
./configure --prefix="/opt/local" --without-framework-carbon --with-x \
            --with-cholmod="-lcholmod -lmetis"
make check

To make sure you have all the necessary dependencies, you can build the most 
recent octave port.

        sudo port build octave-devel +fltk+docs

Ben



reply via email to

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