Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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'
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
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: – 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

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

Your Answer


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.