linux – 在ubuntu中安装octave包

前端之家收集整理的这篇文章主要介绍了linux – 在ubuntu中安装octave包前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
任何人都可以帮助我这个错误
  1. octave:4> pkg install signal-1.2.0.tar.gz
  2. error: the following dependencies where unsatisfied:
  3. signal needs optim >= 1.0.0
  4. signal needs specfun >= 0.0.0
  5. signal needs control >= 2.2.3
  6. signal needs general >= 1.3.2
  7. octave:4> pkg install optim-1.2.2.tar.gz
  8. error: the following dependencies where unsatisfied:
  9. optim needs miscellaneous >= 1.0.10
  10. optim needs struct >= 1.0.10
  11. octave:4> pkg install struct-1.0.10.tar.gz
  12. make: /usr/bin/mkoctfile: Command not found
  13. make: *** [fields2cell.oct] Error 127
  14. 'make' returned the following error: make: Entering directory `/tmp/oct-fDBs5k/struct-1.0.10/src'
  15. /usr/bin/mkoctfile -s fields2cell.cc
  16. make: Leaving directory `/tmp/oct-fDBs5k/struct-1.0.10/src'
  17. error: called from `pkg>configure_make' in file /usr/share/octave/3.6.2/m/pkg/pkg.m near line 1391,column 9
  18. error: called from:
  19. error: /usr/share/octave/3.6.2/m/pkg/pkg.m at line 834,column 5
  20. error: /usr/share/octave/3.6.2/m/pkg/pkg.m at line 383,column 9

我需要安装信号包,但我必须下载其他工作从我已经注意到,但它在安装struct包时卡住.

@编辑
尝试安装misc〜package时出现同样的错误.

  1. octave:5> pkg install miscellaneous-1.2.0.tar.gz
  2. error: the following dependencies where unsatisfied:
  3. miscellaneous needs general >= 1.3.1
  4. octave:5> pkg install general-1.3.2.tar.gz
  5. make: /usr/bin/mkoctfile: Command not found
  6. make: *** [__exit__.oct] Error 127
  7. 'make' returned the following error: make: Entering directory `/tmp/oct-CA6o4U/general/src'
  8. /usr/bin/mkoctfile __exit__.cc
  9. make: Leaving directory `/tmp/oct-CA6o4U/general/src'
  10. error: called from `pkg>configure_make' in file /usr/share/octave/3.6.2/m/pkg/pkg.m near line 1391,column 9

@编辑
附加信息:

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

我不知道该怎么办..

解决方法

你需要安装mkoctfile.根据您的ubuntu版本,这将是不同的包.它使用在octave-pkg-dev,但现在是在liboctave-dev.

Ubuntu和Debian将其作为单独的软件包,因为只需要自己构建软件包即可.他们希望你使用他们打包的Octave软件包(sudo apt-get install octave-signal).他们的版本将落在实际版本之后,但它们分发的Octave版本也是如此.这是支付稳定的代价.

猜你在找的Linux相关文章