On Oct 16, 2008, at 10:06 AM, Carlo de Falco wrote:
On 16/ott/08, at 17:29, Ilan Boaz wrote:
summarizing: you don't just copy manually the files from a
package to the install location, you need to install them using
the package manager pkg.m
That was the first thing I tried, but it breaks -- see below. It
seems to be looking for eigs.oct, which was why I unpacked the
package to look for it.
it tries to produce eigs.oct from the source code which is in the
package and fails because it does not know where libarpack.a is as
indicated by the error message:
"/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: can't locate
file for: -larpack
collect2: ld returned 1 exit status"
so no eigs.oct is created
The thread
https://www-old.cae.wisc.edu/pipermail/help-octave/2007-November.txt
also suggests that eigs.oct should be inside this package.
eigs.oct is not in the package tarball it will be in the package
installation directory after compilation but you won't get it there
until you manage to build it
Any ideas?
Set the environment variable LDFLAGS to point to
LDFLAGS="-Lthe/directory/where/you/installed/libarpack.a"
before running Octave and try again
Thanks Carlo. That helped, but now:
octave-3.0.2:1> pkg install arpack-1.0.6.tar.gz
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
_G77_second_0
collect2: ld returned 1 exit status
make: *** [eigs.oct] Error 1
ARPACK/README hints that the problem might be in the compilation of
libarpack.a:
6. You will also need to change the file "second.f" in the UTIL
directory
to whatever is appropriate for timing on your system. The
"second" routine
provided works on most workstations. If you are running on a Cray,
you can just edit the makefile in UTIL and take out the reference to
"second.o" to use the system second routine.
I am guessing that ARPACK/UTIL/second.f does not work on my system,
hence the
Undefined symbols: _G77_second_0
I did not change ARPACK/UTIL/second.f, because I do not know how.
I am using a Mac G5 PPC.
I have g77 3.4.3. installed (using Fink Xcode 2.5), but there is no
second.f on my system.
Web-searching for second.f for Mac yielded nothing.
Any clue what to do?