Unable to install package optim in Octave

时间:2016-07-11 23:11:13

标签: octave

I try to install the package optim in Octave using the command

pkg install -auto -forge optim

But it gives an error:

error: get_forge_pkg: could not read version number from package's page
error: called from
    get_forge_pkg at line 49 column 7
    get_forge_download at line 26 column 12
    pkg at line 393 column 29

I am not able to resolve this error.

1 个答案:

答案 0 :(得分:2)

当出于某种原因,Octave无法访问Sourceforge上的最新软件包发布列表时,通常会发生这种情况。

我刚试过Octave 4.0.3

pkg install -auto -forge optim

它起作用了:

>> pkg install -auto -forge optim
For information about changes from previous versions
of the optim package, run 'news optim'.

Sourceforge几天前已经不可用了,也许是你遇到问题的原因。

你能再试一次,看看问题是否仍然存在?