Looks like you haven't installed the Octave development files for Octave. I think the package is called 'octave3.0headers' (or something like that) in Ubuntu. Install that and try again.
BTW you should never install packages using the ./configure; make; make install approach. Always, use 'pkg install' from within Octave. Søren tir, 02 12 2008 kl. 19:42 +0000, skrev R.N.Palmer: > How is the arpack package supposed to be installed? If I try to install > it from within Octave as in the Octave-Forge instructions, I get several > error messages, as below; if I try to install it using make as suggested > in its makefile, this appears to succeed but I can't then use the package. > > Ubuntu 8.10 amd64 (Octave 3.0.1) with octave-pkg-dev; ARPACK itself is > installed, but some warnings appeared during this process (which > required editing of ARmake.inc to get it to find gfortran at all) and I > have not tested whether it is working. > > $ tar -xzvf arpack-1.0.6.tar.gz > $ cd arpack-1.0.6 > $ ./configure; make all; make install > $ > octave-3.0.1:3> pkg load arpack > octave-3.0.1:4> eigs([1 0;0 2]) > error: `eigs' undefined near line 4 column 1 > > > > octave-3.0.1:1> cd windocs/Work > octave-3.0.1:2> pkg install arpack-1.0.6.tar.gz > In file included from > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:31, > from /usr/include/octave-3.0.1/octave/SparsedbleCHOL.h:27, > from eigs-base.cc:37, > from eigs.cc:37: > /usr/include/octave-3.0.1/octave/oct-sparse.h:31:33: error: > suitesparse/umfpack.h: No such file or directory > /usr/include/octave-3.0.1/octave/oct-sparse.h:41:32: error: > suitesparse/colamd.h: No such file or directory > /usr/include/octave-3.0.1/octave/oct-sparse.h:51:33: error: > suitesparse/ccolamd.h: No such file or directory > /usr/include/octave-3.0.1/octave/oct-sparse.h:61:33: error: > suitesparse/cholmod.h: No such file or directory > /usr/include/octave-3.0.1/octave/oct-sparse.h:71:28: error: > suitesparse/cs.h: No such file or directory > In file included from /usr/include/octave-3.0.1/octave/SparsedbleCHOL.h:27, > from eigs-base.cc:37, > from eigs.cc:37: > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:57: error: ISO C++ > forbids declaration of ‘cholmod_sparse’ with no type > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:57: error: expected > ‘;’ before ‘*’ token > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:59: error: expected > `;' before ‘octave_idx_type’ > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:74: error: ISO C++ > forbids declaration of ‘cholmod_sparse’ with no type > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:74: error: expected > ‘;’ before ‘*’ token > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:76: error: > ‘cholmod_common’ does not name a type > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:88: error: expected > ‘,’ or ‘...’ before ‘*’ token > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:88: error: ISO C++ > forbids declaration of ‘cholmod_sparse’ with no type > /usr/include/octave-3.0.1/octave/sparse-base-chol.h: In constructor > ‘sparse_base_chol<chol_type, chol_elt, > p_type>::sparse_base_chol_rep::sparse_base_chol_rep()’: > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:43: error: class > ‘sparse_base_chol<chol_type, chol_elt, p_type>::sparse_base_chol_rep’ > does not have any field named ‘Lsparse’ > /usr/include/octave-3.0.1/octave/sparse-base-chol.h: In destructor > ‘sparse_base_chol<chol_type, chol_elt, > p_type>::sparse_base_chol_rep::~sparse_base_chol_rep()’: > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:55: error: ‘Lsparse’ > was not declared in this scope > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:55: error: ‘Common’ > was not declared in this scope > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:55: error: there are > no arguments to ‘cholmod_free_sparse’ that depend on a template > parameter, so a declaration of ‘cholmod_free_sparse’ must be available > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:55: error: (if you > use ‘-fpermissive’, G++ will accept your code, but allowing the use of > an undeclared name is deprecated) > /usr/include/octave-3.0.1/octave/sparse-base-chol.h: In member function > ‘octave_idx_type sparse_base_chol<chol_type, chol_elt, > p_type>::sparse_base_chol_rep::P() const’: > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:60: error: ‘Lsparse’ > was not declared in this scope > /usr/include/octave-3.0.1/octave/sparse-base-chol.h: In destructor > ‘sparse_base_chol<chol_type, chol_elt, > p_type>::sparse_base_chol_rep::~sparse_base_chol_rep() [with chol_type = > SparseMatrix, chol_elt = double, p_type = SparseMatrix]’: > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:159: instantiated > from ‘sparse_base_chol<chol_type, chol_elt, p_type>::~sparse_base_chol() > [with chol_type = SparseMatrix, chol_elt = double, p_type = SparseMatrix]’ > /usr/include/octave-3.0.1/octave/SparsedbleCHOL.h:36: instantiated > from here > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:55: error: > ‘cholmod_free_sparse’ was not declared in this scope > /usr/include/octave-3.0.1/octave/sparse-base-chol.h: In destructor > ‘sparse_base_chol<chol_type, chol_elt, > p_type>::sparse_base_chol_rep::~sparse_base_chol_rep() [with chol_type = > SparseComplexMatrix, chol_elt = std::complex<double>, p_type = > SparseMatrix]’: > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:159: instantiated > from ‘sparse_base_chol<chol_type, chol_elt, p_type>::~sparse_base_chol() > [with chol_type = SparseComplexMatrix, chol_elt = std::complex<double>, > p_type = SparseMatrix]’ > /usr/include/octave-3.0.1/octave/SparseCmplxCHOL.h:39: instantiated > from here > /usr/include/octave-3.0.1/octave/sparse-base-chol.h:55: error: > ‘cholmod_free_sparse’ was not declared in this scope > make: *** [eigs.oct] Error 1 > error: 'make' returned the following error: make: Entering directory > `/tmp/oct-0ea6Pp/arpack-1.0.6/src' > mkoctfile -DHAVE_OCTAVE_30 -v -DHAVE_CONFIG_H -DHAVE_ARPACK eigs.cc -larpack > g++ -c -fPIC -I/usr/include/octave-3.0.1 > -I/usr/include/octave-3.0.1/octave -O2 -g -DHAVE_OCTAVE_30 > -DHAVE_CONFIG_H -DHAVE_ARPACK eigs.cc -o eigs.o > make: Leaving directory `/tmp/oct-0ea6Pp/arpack-1.0.6/src' > error: called from `pkg:configure_make' in file > /usr/share/octave/3.0.1/m/pkg/pkg.m near line 1245, column 2 > octave-3.0.1:2> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Octave-dev mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/octave-dev ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
