在Ubuntu中安装八度包 [英] Installing octave package in ubuntu

查看:133
本文介绍了在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

我需要安装signal软件包,但是我必须从我注意到的地方下载其他软件包才能工作,但是在安装struct软件包时会卡住.

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.

@edit 尝试安装misc〜软件包时出现相同的错误.

@edit The same error when trying to install 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 附加信息:

@edit additional info:

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

我不知道该怎么办.

推荐答案

您需要安装mkoctfile.根据您的ubuntu版本,它会包含在不同的软件包中.它曾经在octave-pkg-dev中,但现在在liboctave-dev中.

You need to install mkoctfile. Depending on your ubuntu version this will be in different packages. It used be in octave-pkg-dev but now is on liboctave-dev.

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

Ubuntu and Debian place this as separate package because it is only needed if you want to build the packages yourself. They expect you to use the Octave packages that they packaged (sudo apt-get install octave-signal). Their versions will be behind the actual version but the same happens with the Octave version they distribute. That's the price to pay for stability.

这篇关于在Ubuntu中安装八度包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆