Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing octave package in ubuntu

anyone can help me with this error?

octave:4> pkg install signal-1.2.0.tar.gz
error: the following dependencies where unsatisfied:
   signal needs optim >= 1.0.0
 signal needs specfun >= 0.0.0
 signal needs control >= 2.2.3
 signal needs general >= 1.3.2
octave:4> pkg install optim-1.2.2.tar.gz
error: the following dependencies where unsatisfied:
   optim needs miscellaneous >= 1.0.10
 optim needs struct >= 1.0.10
octave:4> pkg install struct-1.0.10.tar.gz
make: /usr/bin/mkoctfile: Command not found
make: *** [fields2cell.oct] Error 127
'make' returned the following error: make: Entering directory `/tmp/oct-fDBs5k/struct-1.0.10/src'
/usr/bin/mkoctfile -s fields2cell.cc
make: Leaving directory `/tmp/oct-fDBs5k/struct-1.0.10/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.6.2/m/pkg/pkg.m near line 1391, column 9
error: called from:
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 834, column 5
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 383, column 9

I need to install signal package, but I have to download other to work from I have noticed but it gets stuck when installing struct package.

@edit The same error when trying to install misc~ package.

octave:5> pkg install miscellaneous-1.2.0.tar.gz
error: the following dependencies where unsatisfied:
   miscellaneous needs general >= 1.3.1
octave:5> pkg install general-1.3.2.tar.gz
make: /usr/bin/mkoctfile: Command not found
make: *** [__exit__.oct] Error 127
'make' returned the following error: make: Entering directory `/tmp/oct-CA6o4U/general/src'
/usr/bin/mkoctfile __exit__.cc
make: Leaving directory `/tmp/oct-CA6o4U/general/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.6.2/m/pkg/pkg.m near line 1391, column 9
error: called from:
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 834, column 5
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 383, column 9

@edit additional info:

octave:6> which mkoctfile
`mkoctfile' is a function from the file /usr/share/octave/3.6.2/m/miscellaneous/mkoctfile.m

I have no idea what to do..

like image 296
trinny Avatar asked Jan 10 '13 16:01

trinny


People also ask

How do I install an Octave package?

If you want Octave to automatically load a package, simply add a pkg load pkg-name command to it. If the files does not exist, create it. If you do this, remember that other people may not have Octave configured to load packages at startup.

How do I manually install Octave packages?

To install a package from the Octave Forge, at the Octave prompt type pkg install -forge package_name . This requires an internet connection. If you use a very old Octave version (< 3.4. 0), you'll have to download the package file manually, and use pkg install package_file_name.

Where are Octave packages installed?

You can find the list of packages by clicking on the Packages link at the top. To install a package, use the pkg command from the Octave prompt by typing: pkg install -forge package_name , where package_name is the name of the package you want to install.


1 Answers

You need to install mkoctfile. Depending on your ubuntu version this will be in different packages. It used be in octave-pkg-dev but now is on liboctave-dev.

Ubuntu and Debian place this as separate package because it is only needed if you want to build the packages yourself. They expect you to use the Octave packages that they packaged (sudo apt-get install octave-signal). Their versions will be behind the actual version but the same happens with the Octave version they distribute. That's the price to pay for stability.

like image 62
carandraug Avatar answered Oct 04 '22 12:10

carandraug