[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eigs and Octave.app
From: |
Thomas Treichl |
Subject: |
Re: eigs and Octave.app |
Date: |
Mon, 12 Nov 2007 18:28:19 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (Macintosh/20070728) |
Mark McClure schrieb:
----- Original Message -----
From: David Bateman <address@hidden>
> Isn't Octave.app compiled with f2c as Apple in their wisdom choose
> not to supply a fortran compiler in their Xcode suite.. That is
> probably the issue. Perhaps Arpack can be compiled with f2c as
> well..
I suppose this makes sense; thanks for the info.
Two questions:
1) Has anyone had success with eigs on a Mac? Perhaps,
via direct compilation of Octave as described here:
http://wiki.octave.org/wiki.pl?OctaveForMac
Hallo Mark,
please report if this works for you, the text describes how to install the
ARPACK software before the Octave-forge arpack package can be installed and
this text also will be part of the Readme.html file (if it works for you like
it does work for me) of the next Octave.app release.
Thomas
How can I install the Arpack–package from Octave–Forge that also depends further
libraries?
================================================================================
As described previously you need to download, configure, compile and install the
needed ARPACK-software before you install the Octave–Forge package.
1. Download a current version of the ARPACK–software and the patch that is
available, eg.
bash ~$ curl -s -S \
http://www.caam.rice.edu/software/ARPACK/SRC/arpack96.tar.Z \
-o arpack96.tar.Z
bash ~$ curl -s -S \
http://www.caam.rice.edu/software/ARPACK/SRC/patch.tar.Z \
-o patch.tar.Z
2. Unpack the downloaded files, patch the codes and change into the directory
that has been created, eg.
bash:~$ tar -xzf arpack96.tar.Z
bash:~$ tar -xzf patch.tar.Z
bash:~$ cd ARPACK
bash:~/ARPACK$
3. Edit the file ARmake.inc and change the values of the following variables in
a similiar way, eg.
# this is the location of your current ARPACK directory that has been created
home = $(HOME)/ARPACK
# this actually only results in the name of the created libarpack_${PLAT}.a
PLAT = MAC
# remove the option -cg89 that is not compatible with fort77
FFLAGS = -O
# use backslashes without spaces here and use tabulators at the
# beginnings of the lines
FC = PATH=/Applications/Octave.app/Contents/Resources/bin:${PATH}\
/Applications/Octave.app/Contents/Resources/bin/fort77\
-I/Applications/Octave.app/Contents/Resources/include
# make is in the directory /usr/bin not in /bin
MAKE = /usr/bin/make
4. Compile the ARPACK–software and change the name of the created static library
libarpack_MAC.a into libarpack.a. Then move the renamed static library file into
the lib directory of Octave.app, eg.
bash:~/ARPACK$ make lib
bash:~/ARPACK$ mv libarpack_MAC.a libarpack.a
bash:~/ARPACK$ mv libarpack.a /Applications/Octave.app/Contents/Resources/lib
5. Startup Octave.app and install the desired Octave–package, eg.
octave-2.9.16:1> pkg install arpack-1.0.2.tar.gz
- Re: eigs and Octave.app, (continued)
- Re: eigs and Octave.app, Henry F. Mollet, 2007/11/11
- Re: eigs and Octave.app, Mark McClure, 2007/11/11
- Re: eigs and Octave.app, Henry F. Mollet, 2007/11/11
- Re: eigs and Octave.app, David Bateman, 2007/11/12
- Re: eigs and Octave.app, Mark McClure, 2007/11/12
- Re: eigs and Octave.app, David Bateman, 2007/11/12
- Re: eigs and Octave.app, John W. Eaton, 2007/11/12
- Re: eigs and Octave.app, David Bateman, 2007/11/12
- Re: eigs and Octave.app, Thomas Weber, 2007/11/12
- Re: eigs and Octave.app, David Bateman, 2007/11/13
- Re: eigs and Octave.app,
Thomas Treichl <=
- Re: eigs and Octave.app, Mark McClure, 2007/11/12
- Re: eigs and Octave.app, Mark McClure, 2007/11/13
- Re: eigs and Octave.app, Henry F. Mollet, 2007/11/12
- Re: eigs and Octave.app, Henry F. Mollet, 2007/11/12
- Re: eigs and Octave.app, Thomas Treichl, 2007/11/13
- Re: eigs and Octave.app, Mark McClure, 2007/11/12
- Message not available
- Re: eigs and Octave.app, Thomas Treichl, 2007/11/13
- Re: eigs and Octave.app, Mark McClure, 2007/11/13
Installing Latest Octave in Ubuntu Feisty Fawn, Abdul Rahman Riza, 2007/11/11