I modified the header call
#include "octave/config.h"
#include <fstream>
#include <algorithm>
#include <queue>
#include <climits>
#ifdef HAVE_CONFIG_H
#include <octave/config.h>
#endif
#include <octave/oct.h>
#include <octave/lo-ieee.h>
of dlmread.cc
Before starting pkg install io....tgz
I write export LDFLAGS=-L/usr/lib/octave-2.9.16+/
export CPPFLAGS=-I/usr/include/octave-2.9.16+/
The compilation goes fine but at the end I think there could be
a bug in pkg.m
octave -q
octave:1> pkg install io-1.0.3.tar.gz
warning: creating installation directory /home/corradin/octave
warning: directory /home/corradin/octave/io-1.0.3 previously lost
error: structure has no member `archprefix'
error: evaluating argument list element number 1
error: evaluating assignment expression near line 1940, column 11
error: called from `pkg:getarchdir' in file
`/usr/share/octave/2.9.16+/m/pkg/pkg.m'
error: evaluating assignment expression near line 2020, column 12
error: evaluating for command near line 2014, column 3
error: called from `pkg:load_packages_and_dependencies' in file
`/usr/share/octave/2.9.16+/m/pkg/pkg.m'
error: evaluating if command near line 761, column 3
error: called from `pkg:install' in file
`/usr/share/octave/2.9.16+/m/pkg/pkg.m'
error: evaluating switch command near line 243, column 3
error: called from `pkg' in file `/usr/share/octave/2.9.16+/m/pkg/pkg.m'
Thanks again to all of you
Riccardo
*/LUK ShunTim <address@hidden>/* ha scritto:
Riccardo Corradini wrote:
> Hi all,
> I successfully installed the latest octave2.9.16 from CVS on the
latest
> version of ubuntu, but I have some problems installing the octave
forge
> packages.
> It seems there problems are finding the octave's header
> For instance
> octave -q
> octave:1> pkg install io-1.0.3.tar.gz
> dlmread.cc:18:20: error: config.h: No such file or directory
> dlmread.cc:26:24: error: octave/oct.h: No such file or directory
> dlmread.cc:27:28: error: octave/lo-ieee.h: No such file or directory
Maybe be you need to do something like
export CPPFLAGS=-I/path/to/your/octave-headers
and also this as well
export LDFLAGS=-L/path/to/your/octave-libraries
before you invoke pkg.
Regards,
ST
--