[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Installing packages in Octave 3.8?
From: |
PhilipNienhuis |
Subject: |
Re: Installing packages in Octave 3.8? |
Date: |
Tue, 28 Jan 2014 09:08:29 -0800 (PST) |
am304 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?
Doesn't the Octave installation directory contain a subdir "src"? Inside
there should be a number of packages and a build script "build_packages.m".
If you run that script you'll have a first batch of packages installed.
Philip
--
View this message in context:
http://octave.1599824.n4.nabble.com/Installing-packages-in-Octave-3-8-tp4661469p4661472.html
Sent from the Octave - General mailing list archive at Nabble.com.
Re: Installing packages in Octave 3.8?,
PhilipNienhuis <=