无法在Octave 3.8 Ubuntu中安装octave-forge其他软件包

时间:2014-01-27 14:43:58

标签: linux ubuntu install package octave

我是Octave的新用户,试图安装“杂项”软件包以使用GNU单元。安装失败。我试过了:

  

apt-get install octave-miscellaneous

deb软件包安装,但未在Octave 3.8中列出(通过>> pkg列表)。然后我试了一下:

> pkg install -forge miscellaneous

Octave 3.8回复:

error: element number 1 undefined in return list
error: called from:
error:   /opt/octave3.8/share/octave/3.8.0/m/pkg/private/get_forge_pkg.m at line 40, column 14
error:   /opt/octave3.8/share/octave/3.8.0/m/pkg/private/get_forge_download.m at line 26, column 12

我搜索了很多,但没找到我做错了什么。

3 个答案:

答案 0 :(得分:0)

这是因为默认情况下安装的系统的Octave不是最新的(3.8),但八度自己的包管理器会尝试加载。

apt-get install octave-miscellaneous

安装到不同的前缀,与你可能编译自己的/opt/octave3.8相比。

Here,您可以看到文件的安装位置。

解决方案是自己安装杂项包。请注意,您可能需要以root身份运行octave进行安装,或者授予用户对/opt/octave3.8/share的写入权限...

答案 1 :(得分:0)

考虑到错误消息以及错误抛出的位置,这是因为读取杂项包的页面时出现问题。奇怪的错误消息是因为this bug

因此,请确保Octave能够使用urlread(尝试使用您知道存在的随机文件),并且在输入包名时没有输入任何拼写错误。

最后,你不应该混合通过Debian存储库安装的Octave软件包,并通过Octave的pkg安装。

答案 2 :(得分:-1)

对于来自 RHEL/Centos/Fedora 发行版的任何人,请使用:

dnf search octave-miscellaneous
dnf install -y octave-miscellaneous