【问题标题】:Octave: mkoctfile not found when trying to install toolboxesOctave:尝试安装工具箱时找不到 mkoctfile
【发布时间】:2014-01-17 13:54:50
【问题描述】:
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

说现在有statistics 1.2.2,但是我需要的应该存在的文件(在列表中)却没有。 ??即规范图

【问题讨论】:

  • 您应该删除问题的顶部并更改标题,因为您已经解决了上半部分,而下半部分是一个非常不同的问题。

标签: ubuntu octave


【解决方案1】:

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

sudo apt install liboctave-dev

【讨论】:

    【解决方案2】:

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

    详情请见Installing octave package in ubuntu

    【讨论】:

      【解决方案3】:

      问题是你没有加载你的包。当您键入pkg list 时,您可以找到哪些在其名称前带有星号。使用pkg load statistics 加载一个包。

      必须加载包是大多数用户觉得奇怪的事情,但如果您与其他语言(例如 Python、Perl 或 C++)进行比较,您会期望它们是 importuse#include默认情况下系统中可用的每个库?详情请见Octave's FAQ

      【讨论】:

        猜你喜欢
        • 2014-07-21
        • 2010-09-12
        • 1970-01-01
        • 1970-01-01
        • 2020-07-26
        • 2020-01-08
        • 1970-01-01
        • 2012-10-25
        • 1970-01-01
        相关资源
        最近更新 更多