Octave:尝试安装工具箱时找不到mkoctfile

时间:2013-12-30 16:37:01

标签: ubuntu octave

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

注意:
“sudo apt-get install octave-pkg-dev”将卸载我的Octave 3.6.4版本并安装旧版本3.2.4。我尝试使用“sudo apt-get install octave-XXXXX”安装的任何软件包都可以执行此操作。

尝试:

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 和要安装的sudo octave:http://skramm.blogspot.com/2013/03/octaveubuntu-problems-installing.html

版本:

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

现在说统计1.2.2已存在,但我需要的应该存在的文件(在列表中)不是。 ??即normplot

3 个答案:

答案 0 :(得分:5)

上半部分的解决方案(八度音程中缺少mkoctfile)是为您的发行版安装八度音阶开发包。这可能被称为octave-pkg-dev,liboctave-dev,octave-devel或类似的东西(在您的发行版的存储库中查找*oct*dev*)。

有关详细信息,请参阅Installing octave package in ubuntu

答案 1 :(得分:2)

对于Linux安装liboctave-dev,它对我有用。

sudo apt install liboctave-dev

答案 2 :(得分:1)

问题是你没有加载你的包裹。键入pkg list时,您可以在名称前面找到由星号加载的文件。使用pkg load statistics加载包。

必须加载包是大多数用户觉得奇怪的东西但是如果你与其他语言比较,比如Python,Perl或C ++,你会期望它们importuse,或#include默认情况下系统中可用的每个库?有关详细信息,请参阅Octave's FAQ

相关问题