[Top][All Lists]

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

Re: Mac OS X build

From: Per Persson
Subject: Re: Mac OS X build
Date: Tue, 3 Jun 2003 10:29:24 +0200

On tisdag, jun 3, 2003, at 06:30 Europe/Stockholm, Heber Farnsworth wrote:

I think I have mentioned on this list before that I haven't been able to build octave on mac os x.

What version of OS X? What version of gcc and g77?

I used fink to get the necessary libraries (readline, etc) but the build fails.

How does it fail?
Fink installs its stuff in a non-standard directory (/sw) so you'll have to explicitly point configure to the readline.
Fink FAQ (Q6.4):

g77 installed by fink used to (I don't use fink) have a problem which could be corrected by setting FFLAGS = -lg2c

The fink version of Octave has too many numerical problems to be usable.

IIRC, this was a problem with octave 2.1.40 in fink.
The package was updated because of this, and the fink page lists 2.1.46 as the current version in both stable and unstable branches.

Have you updated the package descriptions?
What does "fink list octave" give you?

Note that the above refers to fink source installs, I have no idea what so ever what a binary package would give you.

Up to now I've been able to manage by running my jobs on a linux machine but that situation will soon change. I need to be able to run octave under os x. Can anyone either

(a) tell me how to fix the problems with the fink version
(b) post a fixed fink package

These are questions for the fink mailing lists:

If you want to contact the maintainer of fink's octave package you'll find the email address by issuing "fink info octave"

(c) tell me how to get this to build

You need:
--- Working gcc and g77 of the following (or newer) versions

% gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.1/specs
Thread model: posix
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420 (prerelease)

Get it from

% g77 -v
Reading specs from /usr/local/lib/gcc-lib/powerpc-apple-darwin6.1/3.1/specs Configured with: ../gcc3-1151/configure --enable-pfe --disable-nls --enable-threads=posix --enable-languages=f77
Thread model: posix
Apple Computer, Inc. GCC version 1151, based on gcc version 3.1 20020420 (prerelease)

Get g77 3.1 from fink or (precompiled)

--- readline (which you seem to have)

--- teTeX from fink or some other source (I'm not sure if this is an absolute requirement)

Follow these instructions (from the octave wiki which is currently down)
1)  Get octave-2.1.48.tar.gz from

2) Make sure you have the following installed: Dec2002 (or later) DevTools, a working Fortran compiler, readline, and texinfo or tetex.

3) Unpack it and run './configure' _without_ arguments unless you know exactly what you are doing

4)  Edit config.h so that the line:

    /* #undef HAVE_DYLD_API */

instead reads:

    #define HAVE_DYLD_API 1

5) run 'make' followed by 'sudo make install'

6) Test the setup by running 'mkoctfile' in octave's examples directory.
You should get a file hello.oct that can be run in octave


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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