jdl
jdl

Reputation: 6323

Octave: mkoctfile not found when trying to install toolboxes

Downloaded packages from http://sourceforge.net/projects/octave/files/Octave%20Forge%20Packages/

then from Octave... 

pkg install statistics-1.2.2.tar.gz
statistics needs io >= 1.0.18

pkg install io-1.2.5.tar.gz
lots of errors(mkoctfile not found)

octave:2> ver
----------------------------------------------------------------------
GNU Octave Version 3.6.4
GNU Octave License: GNU General Public License
Operating System: Linux 3.2.0-57-generic-pae #87-Ubuntu SMP Tue Nov 12 21:57:43 UTC 2013 i686
----------------------------------------------------------------------
no packages installed.
octave:7> pkg install statistics-1.2.2.tar.gz
error: the following dependencies where unsatisfied:
   statistics needs io >= 1.0.18
octave:7> pkg install io-1.2.5.tar.gz
make: mkoctfile: Command not found
make: *** [csvexplode.oct] Error 127
'make' returned the following error: make: Entering directory `/tmp/oct-JWSn8i/io/src'
mkoctfile csvexplode.cc
make: Leaving directory `/tmp/oct-JWSn8i/io/src'
error: called from 'pkg>configure_make' in file /usr/share/octave/3.6.4/m/pkg/pkg.m near line 1391, column 9
error: called from:
error:   /usr/share/octave/3.6.4/m/pkg/pkg.m at line 834, column 5
error:   /usr/share/octave/3.6.4/m/pkg/pkg.m at line 383, column 9

Note:
"sudo apt-get install octave-pkg-dev" will uninstall my ver of Octave 3.6.4 and install an older version 3.2.4. Any package that I try to install with "sudo apt-get install octave-XXXXX" will do this.

trying:

https://askubuntu.com/questions/194151/how-do-you-install-the-latest-version-of-gnu-octave

http://openems.de/forum/viewtopic.php?f=2&t=52 and the sudo octave to install: http://skramm.blogspot.com/2013/03/octaveubuntu-problems-installing.html

ver:

GNU Octave Version 3.6.4
GNU Octave License: GNU General Public License
Operating System: Linux 3.2.0-57-generic-pae #87-Ubuntu SMP Tue Nov 12 21:57:43 UTC 2013 i686
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
          io  |   1.2.5 | /usr/share/octave/packages/io-1.2.5
  statistics  |   1.2.2 | /usr/share/octave/packages/statistics-1.2.2

says statistics 1.2.2 is there now, but the files that should be present(on the list), that I need, are not. ?? ie normplot

Upvotes: 4

Views: 9722

Answers (4)

srk_cb
srk_cb

Reputation: 257

just to be useful for anyone using Fedora.

guided by @jhfrontz answer:

sudo dnf install octave-devel

solved the problem of 'missing mkoctfile in octave' in fedora 40

Upvotes: 0

satya prakash patel
satya prakash patel

Reputation: 550

For linux install liboctave-dev it worked for me.

sudo apt install liboctave-dev

Upvotes: 4

jhfrontz
jhfrontz

Reputation: 1385

The solution to the top half (missing mkoctfile in octave) is to install the octave development package for your distribution. This might be called octave-pkg-dev, liboctave-dev, octave-devel, or something similar (look for *oct*dev* in your distribution's repository).

See Installing octave package in ubuntu for details.

Upvotes: 12

carandraug
carandraug

Reputation: 13091

The problem is that you didn't load your packages. When you type pkg list you can find which ones are loaded by an asterisk in front of their names. Load a package with pkg load statistics.

Having to load a packages is that thing that most users find strange but if you compare with other languages, such as Python, Perl, or C++, would you expect them to import, use, or #include every libraries available in the system by default? See Octave's FAQ for more details.

Upvotes: 2

Related Questions