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
octave-3.2.4:1> mkoctfile --mex myhello.c
sh: 1: /usr/bin/mkoctfile-3.2.4: not found
warning: unable to find mkoctfile in expected location: `/usr/bin/mkoctfile-3.2.4'
warning: mkoctfile exited with failure status

i have searched for mkoctfile and i found it in this path


now please tell me what i should do to create mex file

share|improve this question

I figured out that header files where missing . So i installed header files from Ubuntu software center . just type mkoctfile in search and install Header files for the GNU octave language (3.2 branch) now i can complile .mex files using the command mkoctfile --mex myhello.c

share|improve this answer

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.