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: Tue, 19 Dec 2006 20:28:50 +0100

On 19.12.2006, at 18:42, Joe Koski wrote:

on 12/19/06 6:03 AM, Matthias Brennwald at address@hidden
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

Matthias,

I solved the readline problem by installing readline-5.1 from the gnu
website. It builds "out of the box" and installs in /usr/local/lib. I
temporarily renamed the Apple libreadline and the .dylib versions to force the octave build to use the static libreadline.a. As an alternative, you could probably place a symbolic link to the libreadline.a located in /sw into /usr/local/lib, and make sure /usr/local is on your path for the build.

I tried that, but with no luck:

* my path:
Pizza:~/Desktop/octave-2.9.9 mbrennwa$ echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/ local/teTeX/bin/powerpc-apple-darwin-current:/usr/local/teTeX/bin/ powerpc-apple-darwin6.8/:/Users/brennmat/Library/texmf/bibtex/ bib2xhtml/:/usr/X11R6/bin:/usr/local/bin

* my libreadline stuff:
Pizza:~/Desktop/octave-2.9.9 mbrennwa$ ls -la /usr/local/lib/libread*
-r-xr-xr-x 1 root wheel 466664 Dec 19 12:44 /usr/local/lib/ libreadline.5.2.dylibTEMPOTHERNAME lrwxr-xr-x 1 root wheel 21 Dec 19 12:44 /usr/local/lib/ libreadline.5.dylib -> libreadline.5.2.dylib lrwxr-xr-x 1 root wheel 21 Dec 19 20:19 /usr/local/lib/ libreadline.a -> /sw/lib/libreadline.a lrwxr-xr-x 1 root wheel 21 Dec 19 12:44 /usr/local/lib/ libreadline.dylib -> libreadline.5.2.dylib

* configuring Octave (same error as before):
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 to say that I'm only a wanna-be UNIX geek at best... but maybe there is still some hope for me and Octave 2.9?


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]