|
Hello,
I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have: - GNU Make - g++ - gcc - g77 - gfortran When I run the ./configure script I get this error: <code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code> I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work? I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled. Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l. Any help greatly appreciated! Thanks a million Stephen Wilson </code> _______________________________________________ Help-octave mailing list [hidden email] https://mailman.cae.wisc.edu/listinfo/help-octave |
|
Administrator
|
On Aug 30, 2011, at 9:15 AM, Stephen Wilson wrote:
> Hello, > > I'm trying to install Octave 3.4.2 on a MacBook running 10.6.7. On my machine I have: > - GNU Make > - g++ > - gcc > - g77 > - gfortran > > When I run the ./configure script I get this error: > > <code>error: your Fortran compiler must have an option to make integers the same size as octave_idx_type (int). </code> > > I see that other people have encountered this error. However, I am at a loss to fix it. What are the steps I need to carry out to get Octave to work? > > I can't use the Octave.app as I need to use s Matlab script that uses imread() and the application was compiled with this disabled. > > Similarly, trying to install octave-devel using macports doesn't work as it hangs when trying to build gcc (despite it already being installed)l. > > Any help greatly appreciated! > > Thanks a million > > Stephen Wilson If you are unable to build MacPort's gcc then it is possible you have a problem with your development tools. Where did you obtain your g++, gcc, g77, & gfortran? Ben _______________________________________________ Help-octave mailing list [hidden email] https://mailman.cae.wisc.edu/listinfo/help-octave |
|
Administrator
|
On Aug 30, 2011, at 11:03 AM, Stephen Wilson wrote:
Hi Ben, What version of gcc did you try to install using MacPorts? Where did you get your copy of the gfortran dmg? Ben _______________________________________________ Help-octave mailing list [hidden email] https://mailman.cae.wisc.edu/listinfo/help-octave |
|
Administrator
|
On Aug 30, 2011, at 11:26 AM, Stephen Wilson wrote:
Thanks for taking the time to reply :-) How, and where, did you install gcc-4.0? What do the following return for you? $ ls /usr/bin/gcc* /usr/bin/gcc /usr/bin/gcc-4.2 $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Ben p.s. please reply-all and respond below so that those who arrive late can follow along. Thanks! _______________________________________________ Help-octave mailing list [hidden email] https://mailman.cae.wisc.edu/listinfo/help-octave |
|
On 30 August 2011 16:37, Ben Abbott <[hidden email]> wrote:
I installed gfortran4.2.3.dmg $ls /usr/bin/gcc* returns /usr/bin/gcc /usr/bin/gcc-4.0 /usr/bin/gcc-4.2 $ gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. _______________________________________________ Help-octave mailing list [hidden email] https://mailman.cae.wisc.edu/listinfo/help-octave |
|
Administrator
|
On Aug 30, 2011, at 11:43 AM, Stephen Wilson wrote: On 30 August 2011 16:37, Ben Abbott <[hidden email]> wrote: Ok. gfortran-4.2.3.dmg is for OSX Tiger (10.4). This is likely the the problem with both MacPorts' gcc and with the error you encountered with Octave's configure. I don't know if it is possible to install the correct gfortran over the one you have, but you can try. Once you have octave-devel installed, and if you are interested in compiling the development sources, I can help you set that up. Ben _______________________________________________ Help-octave mailing list [hidden email] https://mailman.cae.wisc.edu/listinfo/help-octave |
|
On 30 August 2011 16:57, Ben Abbott <[hidden email]> wrote: D'oh! Ok, thanks :-) I will try out the suggestions and report back!
Thanks again S _______________________________________________ Help-octave mailing list [hidden email] https://mailman.cae.wisc.edu/listinfo/help-octave |
|
In reply to this post by bpabbott
On 30 August 2011 16:57, Ben Abbott <[hidden email]> wrote:
Hi Ben, I have been able to install octave-devel via MacPorts. It appears to run from the terminal. What benefits (if any) would I gain from compiling the sources again and how would I go about doing it? Thanks, Stephen _______________________________________________ Help-octave mailing list [hidden email] https://mailman.cae.wisc.edu/listinfo/help-octave |
|
Administrator
|
On Aug 31, 2011, at 3:45 AM, Stephen Wilson wrote:
> Hi Ben, > > I have been able to install octave-devel via MacPorts. It appears to run from the terminal. What benefits (if any) would I gain from compiling the sources again and how would I go about doing it? > > Thanks, > > Stephen Ok, that's good news. Before worrying about the developers sources, you'll want to add some additional ports. sudo port install epstool pstoedit transfig fltk-devel sudo port activate qhull @2010.1_3 If the "activate" doesn't work, they try ... sudo port install qhull @2010.1_3 sudo port activate qhull @2010.1_3 And then rebuild octave (so that it will use qhull and fltk). sudo port upgrade -f octave-devel This will ensure your Octave is fully functional. The benefit, of using the developer's sources, is you'd be able to contribute to Octave's development. If you are interested, go to the link below .... http://www.gnu.org/software/octave/download.html ... and scroll down to, and follow, the instructions under Development Sources. When you have a local copy of the sources you'll be able to compile by ... cd "path to your copy of the sources" ./autogen.sh export PREFIX=/opt/local export CC=/opt/local/bin/gcc-mp-4.4 export CXX=/opt/local/bin/g++-mp-4.4 export CXXCPP="/opt/local/bin/g++-mp-4.4 -E" export F77=/opt/local/bin/gfortran-mp-4.4 export FC=/opt/local/bin/gfortran-mp-4.4 export CXXFLAGS="-pipe -O2 -m64" export FFLAGS="$CXXFLAGS -D_THREAD_SAFE -pthread" 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" Once that is done, I recommend you *not* install Octave since MacPorts will be unable to uninstall it later. However, you can still run the developers version by typing ./run-octave from the directory containing the sources. Ben _______________________________________________ Help-octave mailing list [hidden email] https://mailman.cae.wisc.edu/listinfo/help-octave |
| Powered by Nabble | Edit this page |
