help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing packages in Octave 3.8?


From: Nicholas Jankowski
Subject: Re: Installing packages in Octave 3.8?
Date: Tue, 28 Jan 2014 11:45:42 -0500

On Tue, Jan 28, 2014 at 11:30 AM, Arnaud Miege <address@hidden> wrote:
Hi,

I have just installed Octave 3.8 on my Windows 7 machine from http://mxeoctave.osuv.de/. It appears as if no packages are installed with Octave and I haven't found a way to download/install all packages at once, so I am doing them one at a time using pkg install -forge <package_name>. It's quite tedious and I have to work through all the dependencies by hand. Is there an easier way?

Also, when trying to install parallel, which is required for optim, I got the following error message:

>> pkg install -forge parallel
sclose.cc:37:24: fatal error: sys/socket.h: No such file or directory
 #include <sys/socket.h>
                        ^
compilation terminated.
sock-stream.cc: In function 'void handle_errno(std::string, int)':
sock-stream.cc:56:10: error: 'ELOOP' was not declared in this scope
     case ELOOP:
          ^
sock-stream.cc:89:10: error: 'ETXTBSY' was not declared in this scope
     case ETXTBSY:
          ^
g++: error: sclose.o: No such file or directory
g++: error: sock-stream.o: No such file or directory
strip: 'sclose.oct': No such file
make: *** [sclose.oct] Error 1
make: Entering directory `/tmp/oct-11/parallel-2.1.1/src'
C:/Octave/Octave-3.8.0/bin/mkoctfile-3.8.0.exe -s sclose.cc sock-stream.cc
make: Leaving directory `/tmp/oct-11/parallel-2.1.1/src'

pkg: error running `make' for the parallel package.
error: called from 'configure_make' in file C:\Octave\Octave-3.8.0\share\octave\3.8.0\m\pkg\private\configure
_make.m near line 82, column 9
error: called from:
error:   C:\Octave\Octave-3.8.0\share\octave\3.8.0\m\pkg\private\install.m at line 199, column 5
error:   C:\Octave\Octave-3.8.0\share\octave\3.8.0\m\pkg\pkg.m at line 394, column 9

Any suggestions on how to work round this?

Thanks,

Arnaud

If I recall correctly from a few versions ago, Windows isn't generally equipped to rebuild all of the packages. While some of them can be added and updated, others require compilation, Unlike most linux systems Windows is not set up to do this as Octave would expect.

That's generally why the windows version of Octave comes with a pre-compiled package set, and updating  is a hit or miss process.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]