简体   繁体   English

在ubuntu中安装octave包

[英]Installing octave package in ubuntu

anyone can help me with this error? 有人可以帮我解决这个错误吗?

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

I need to install signal package, but I have to download other to work from I have noticed but it gets stuck when installing struct package. 我需要安装信号包,但我必须下载其他工作,我已经注意到但它在安装struct package时卡住了。

@edit The same error when trying to install misc~ package. @edit尝试安装misc~package时出现同样的错误。

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 additional info: @edit附加信息:

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

I have no idea what to do.. 我不知道该怎么做..

You need to install mkoctfile . 你需要安装mkoctfile Depending on your ubuntu version this will be in different packages. 根据您的ubuntu版本,这将在不同的包中。 It used be in octave-pkg-dev but now is on liboctave-dev . 它在octave-pkg-dev但现在在liboctave-dev

Ubuntu and Debian place this as separate package because it is only needed if you want to build the packages yourself. Ubuntu和Debian将它作为单独的包放置,因为只有你想自己构建包时才需要它。 They expect you to use the Octave packages that they packaged ( sudo apt-get install octave-signal ). 他们希望你使用他们打包的Octave软件包( sudo apt-get install octave-signal )。 Their versions will be behind the actual version but the same happens with the Octave version they distribute. 他们的版本将落后于实际版本,但他们分发的Octave版本也是如此。 That's the price to pay for stability. 这是稳定的代价。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM