help-octave
[Top][All Lists]
Advanced

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

Re: Installing Octave 2.9.9 on a Mac


From: Matthias Brennwald
Subject: Re: Installing Octave 2.9.9 on a Mac
Date: Thu, 21 Dec 2006 11:18:16 +0100


On 20.12.2006, at 21:18, address@hidden wrote:


 -------------- Original message ----------------------
From: Joe Koski <address@hidden>



on 12/20/06 12:06 PM, Matthias Brennwald at address@hidden
wrote:


On 19.12.2006, at 14:03, Matthias Brennwald wrote:

Dear all,

after the recent talk on the Octave help list about installing
2.9.9 on Macs I thought I'd give it a try, too. Since it seems a
less-than-optimal idea to combine the HPC binary with the HMUG
version of Octave forge I tried the following:


1. Install the HMUG version of Octave 2.9.9.
I downloaded the archive from http://www.hmug.org/pub/MacOS_X/BSD/
Applications/Math/octave/octave-2.9.9-2-osx4-ppc.tar.gz and tried
to install it according to the instructions at http://www.hmug.org/
pub/MacOS_X/BSD/Applications/Math/octave/ README.octave-2.9.9-2.osx4-
ppc.html . That failed miserably:

Pizza:~/Desktop mbrennwa$ mv octave-2.9.9 /tmp
Pizza:~/Desktop mbrennwa$ sudo make install
Password:
Sorry, try again.
Password:
make: *** No rule to make target `install'.  Stop.


2. Compiling from sources.
I downloaded the sources from ftp://ftp.octave.org/pub/octave/
bleeding-edge/octave-2.9.9.tar.gz and tried to install it according
to the instructions in INSTALL:

Pizza:~/Desktop/octave-2.9.9 mbrennwa$ ./configure
....lots of stuff here....
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

I have readline installed from Fink.


Can someone help me sort this out?

Also, what needs to happen to make Octave 2.9 appear on Fink? Fink
is just way more convenient than the above...


Matthias

I tried again to build Octave 2.9.9 from the sources. First I
installed the latest readline from the GNU website. With this,
configure completed without errors, but some warnings:

configure: WARNING: UMFPACK not found. This will result in some lack
of functionality for sparse matrices.
configure: WARNING: COLAMD not found. This will result in some lack
of functionality for sparse matrices.
configure: WARNING: CCOLAMD not found. This will result in some lack
of functionality for sparse matrices.
configure: WARNING: CHOLMOD not found. This will result in some lack
of functionality for sparse matrices.
configure: WARNING: CXSparse not found. This will result in some lack
of functionality for sparse matrices.
configure: WARNING: HDF5 library not found.  Octave will not be able
to save or load HDF5 data files.

I decided to go without sparse matrix support for the moment. So I
went on to make:

Pizza:~/Desktop/octave-2.9.9 mbrennwa$ sudo make
...lots of stuff here...
...ocal/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -L/
usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4/../../.. -lz -lm -
lfrtbegin -lg2c
ld: Undefined symbols:
restFP
saveFP
/usr/bin/libtool: internal link edit command failed
make[2]: *** [liboctave.dylib] Error 1
make[1]: *** [liboctave] Error 2
make: *** [all] Error 2


Now what?


Matthias

Matthias,

It appears that you are using OS X 10.3.9. Correct? If so you need to add something like export LIBS=-lcc_dynamic before you configure. If I recall correctly, the missing saveFP and restFP reside in libcc_dynamic.a that should be located in your /usr/lib. That library has disappeared from OS X
10.4.x, but those routines now apparently reside elsewhere.

Joe

You'll need

-L/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/darwin/2.95.2 - lcc_dynamic

Marius

Ok, that helped, but I got yet another error :

First:

Pizza:~/Desktop/octave-2.9.9 mbrennwa$ ./configure CFLAGS="-O2 -g -I/ usr/local/include" CXXFLAGS="-O2 -g -I/usr/local/include" LDFLAGS="-L/ usr/local/lib -L/Developer/SDKs/MacOSX10.3.9.sdk/usr/lib/gcc/darwin/ 2.95.2 -lcc_dynamic"

this completed with the usual warnings about sparse matrices. Then:

Pizza:~/Desktop/octave-2.9.9 mbrennwa$ sudo make
...lots of stuff here...
...pple-darwin7.9.0/3.4.4/../../.. -lcc_dynamic -lz -lm -lfrtbegin -lg2c
ld: Undefined symbols:
___powidf2
/usr/bin/libtool: internal link edit command failed
make[2]: *** [liboctinterp.dylib] Error 1
make[1]: *** [src] Error 2
make: *** [all] Error 2


Is the make file any good for Mac OS X?

Cheers,
Matthias


--------
Matthias Brennwald
Office: Eawag, CH 8600 Dübendorf, +41 / (0)44 823 55 26
Lab: ETH, CH 8092 Zürich, 41 / (0)44 632 09 39
http://www.eawag.ch/~brennmat





reply via email to

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