在Ubuntu中安装Octave软件包

11

有人可以帮我解决这个错误吗?

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

我需要安装signal软件包,但是我注意到必须从其他软件包下载才能正常工作,但在安装struct软件包时卡住了。

@edit 尝试安装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

@edit 附加信息:

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

我不知道该怎么办...

1个回答

14
你需要安装 mkoctfile。根据你的Ubuntu版本,这将在不同的软件包中。它曾经在 octave-pkg-dev 中,但现在在 liboctave-dev 中。
Ubuntu和Debian将其作为单独的软件包,因为只有在您想要自己构建软件包时才需要它。他们希望您使用他们打包的Octave软件包(sudo apt-get install octave-signal)。它们的版本将落后于实际版本,但与他们分发的Octave版本相同。这是为了获得稳定性而必须付出的代价。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接