【问题标题】:Installing octave package in ubuntu在 ubuntu 中安装 octave 包
【发布时间】:2012-12-25 03:00:53
【问题描述】:

谁能帮我解决这个错误?

octave:4> pkg install signal-1.2.0.tar.gz
error: the following dependencies where unsatisfied:
   signal needs optim >= 1.0.0
 signal needs specfun >= 0.0.0
 signal needs control >= 2.2.3
 signal needs general >= 1.3.2
octave:4> pkg install optim-1.2.2.tar.gz
error: the following dependencies where unsatisfied:
   optim needs miscellaneous >= 1.0.10
 optim needs struct >= 1.0.10
octave:4> pkg install struct-1.0.10.tar.gz
make: /usr/bin/mkoctfile: Command not found
make: *** [fields2cell.oct] Error 127
'make' returned the following error: make: Entering directory `/tmp/oct-fDBs5k/struct-1.0.10/src'
/usr/bin/mkoctfile -s fields2cell.cc
make: Leaving directory `/tmp/oct-fDBs5k/struct-1.0.10/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.6.2/m/pkg/pkg.m near line 1391, column 9
error: called from:
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 834, column 5
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 383, column 9

我需要安装信号包,但我必须下载其他的才能工作,但我注意到安装结构包时卡住了。

@编辑 尝试安装 misc~ 包时出现同样的错误。

octave:5> pkg install miscellaneous-1.2.0.tar.gz
error: the following dependencies where unsatisfied:
   miscellaneous needs general >= 1.3.1
octave:5> 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-CA6o4U/general/src'
/usr/bin/mkoctfile __exit__.cc
make: Leaving directory `/tmp/oct-CA6o4U/general/src'
error: called from `pkg>configure_make' in file /usr/share/octave/3.6.2/m/pkg/pkg.m near line 1391, column 9
error: called from:
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 834, column 5
error:   /usr/share/octave/3.6.2/m/pkg/pkg.m at line 383, column 9

@编辑 附加信息:

octave:6> which mkoctfile
`mkoctfile' is a function from the file /usr/share/octave/3.6.2/m/miscellaneous/mkoctfile.m

我不知道该怎么办..

【问题讨论】:

    标签: linux ubuntu package octave sudo


    【解决方案1】:

    您需要安装mkoctfile。根据您的 ubuntu 版本,这将位于不同的包中。它曾经在octave-pkg-dev,但现在在liboctave-dev

    Ubuntu 和 Debian 将它作为单独的包放置,因为只有当您想自己构建包时才需要它。他们希望您使用他们打包的 Octave 包 (sudo apt-get install octave-signal)。他们的版本将落后于实际版本,但他们分发的 Octave 版本也是如此。这就是为稳定付出的代价。

    【讨论】:

      猜你喜欢
      • 2014-02-18
      • 2017-03-22
      • 1970-01-01
      • 1970-01-01
      • 2017-01-02
      • 2015-12-06
      • 2020-10-12
      • 2021-10-04
      • 2018-06-18
      相关资源
      最近更新 更多