Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to install the GNU Octave optim package, but I keep receiving errors in the process. Apparently I need to install some other packages first, one of which is the general package. However, when I try to, I receive this error:

octave:17> 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-CGIPo9/general/src'
/usr/bin/mkoctfile __exit__.cc
make: Leaving directory `/tmp/oct-CGIPo9/general/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.6.1/m/pkg/pkg.m near line 1391, column 9
error: called from:
error:   /usr/share/octave/3.6.1/m/pkg/pkg.m at line 834, column 5
error:   /usr/share/octave/3.6.1/m/pkg/pkg.m at line 383, column 9
share|improve this question
    
Could you show the sequence of commands that you are entering? –  Lucio Dec 19 '12 at 14:30
1  
How did you install octave? make is complaining about missing /usr/bin/mkoctfile. –  Eric Carvalho Dec 19 '12 at 14:33
    
Also, from where have you downloaded the source? (link it) –  Lucio Dec 19 '12 at 14:47
    
The command I'm using is pkg install <filename>. I installed it from the repositories. The packages were dowloaded from the official Octave Sourceforge's site: octave.sourceforge.net/general/index.html –  carllacan Dec 19 '12 at 15:28
    
I installed it from the picasso/octave repositoy, if it helps. –  carllacan Dec 19 '12 at 18:46
add comment

1 Answer

This should be solved with the following command:

sudo apt-get install octave-pkg-dev

It installs the missing mkoctfile program.

share|improve this answer
    
when I did this it reverted or un-installed octave 3.6.4 and installed Octave 3.2.4... not good! –  jdl Dec 30 '13 at 16:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.