PDA

View Full Version : [all variants] Installing packages in Octave


browny254
June 15th, 2008, 04:18 PM
Hi, I was wondering if someone knows how to install Octave packages, when i try i get the following

octave:5> pkg install signal-1.0.7.tar.gz
make: mkoctfile: Command not found
make: *** [remez.oct] Error 127
error: 'make' returned the following error: make: Entering directory `/tmp/oct-Eo2mX0/signal-1.0.7/src'
mkoctfile -s remez.cc
make: Leaving directory `/tmp/oct-Eo2mX0/signal-1.0.7/src'
error: called from `pkg:configure_make' in file /usr/share/octave/3.0.0/m/pkg/pkg.m near line 1058, column 2


thanks for any help.

argail1980
June 15th, 2008, 04:20 PM
no idea really, but have you tried unpacking it first outside octave?

tar xvzf signal-1.0.7.tar.gz

Maybe there's a README inside ;-)

browny254
June 15th, 2008, 04:25 PM
no, i dont think its that...this is what the faq says...

How do I install a package?

First you need to download the package, by going to the package web page and clicking download. Then start Octave and go to the directory where you placed the downloaded package using the cd command. Then type
pkg install package_file_name.tar.gz

where package_file_name.tar.gz is the file name of the package you downloaded.



but that didnt work for me.

argail1980
June 15th, 2008, 04:56 PM
ok, then I have absolutely no idea, sry

jonlemur
July 2nd, 2008, 03:24 PM
I think you need the octave3.0-headers.

sudo apt-get install octave3.0-headers

They include the mkoctfile command that you're missing.

foxvan
February 6th, 2011, 10:34 AM
Thank you, this worked for me:

1. Install the header package corresponding to your octave version. In my case it was octave3.2-headers
2. Download the package you want
3. Start octave as sudo or any other user with copy permission to /usr/share/octave.
4. Navigate to the downloaded package path and run the command: pkg install package-name