无法加载share \ octave \ packages中可用但未在share \ octave \ octave_packages中列出的软件包 [英] Cannot load Packages available in share\octave\packages but not listed in share\octave\octave_packages

查看:123
本文介绍了无法加载share \ octave \ packages中可用但未在share \ octave \ octave_packages中列出的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

短篇小说:

在目录...\octave-4.2.1\share\octave\packages中,最初有45个包子目录(带有.m和其他文件),例如financial-0.5.0. 但是我找不到使用它们的方法.

In the directory ...\octave-4.2.1\share\octave\packages there were initially 45 package subdirectories (with .m and other files), for instance financial-0.5.0. But I could not find a way to use them.

更详细的信息:

我已解压缩便携式(.zip)版本用于Windows的Octave 4.2.1 64位,在8:00 am(稍后提供有用的信息)插入C:\Users\user1\DOCUME~1\apps\OCTAVE~1.1(最初为C:\Users\user1\Documents\apps\octave-4.2.1).

I have unzipped the portable (.zip) version of Octave 4.2.1 64 bit for Windows, at 8:00am (useful info for later), into C:\Users\user1\DOCUME~1\apps\OCTAVE~1.1 (originally C:\Users\user1\Documents\apps\octave-4.2.1).

然后我用

>> pkg install symbolic-2.6.0

现在可以使用该版本了,例如

and this one is now available, e.g.,

>> pkg list
Package Name  | Version | Installation directory
--------------+---------+-----------------------
    symbolic  |   2.6.0 | C:\Users\user1\DOCUME~1\apps\OCTAVE~1.1\share\octave\packages\symbolic-2.6.0

根据官方文档

>> pkg global_list
C:\Users\user1\DOCUME~1\apps\OCTAVE~1.1\share\octave\octave_packages

提供用于在其中查找有关全局安装的软件包的信息的文件". 该文件没有45个内置软件包中的任何信息.它只有关于symbolic的信息. 我想这已经足以使软件包不可用.

gives "the file in which to look for information on globally installed packages". That file does not have any information on any of the 45 built-in packages. It only has info on symbolic. I guess this is already enough for the packages not to be available.

此外,文件的第一行显示# Created by Octave 4.2.1, ... 08:19:23 2017 GMT <unknown@unknown>,好像它在我安装symbolic之前不存在.

Moreover, the first line of the file states # Created by Octave 4.2.1, ... 08:19:23 2017 GMT <unknown@unknown>, as if it did not exist prior to my installing symbolic.

问题:

Q1:有什么方法可以使软件包可用? 我想我可以安装它们中的每一个,但我也想那不是提供的.zip打算使用的方式.

Q1: Is there any way to make the packages available? I guess I could install each of them, but I also guess that is not the way the .zip provided is intended to be used.

第二季度:为什么没有提供octave_packages?

Q2: Why would there be no octave_packages provided?

PS:受此旧链接的启发,我检查了如果树中其他地方没有octave_packages,则没有.

PS: Inspired by this old link, I checked if there was an octave_packages somewhere else in the tree... there is none.

PS2:需要澄清后再发表评论: 除了扩展原始zip文件并安装symbolic外,我没有做任何其他事情.然后隐含了答案,但无论如何我还是要明确地给出答案.
其余的都在哪里安装的?我没有安装;它们内置在.zip中.
您是如何尝试安装它们的?我没有.
为什么不通过Forge安装?因为我已经下载了用于符号的安装程序.
您是否尝试以与global_list相同的方式来设置local_list(并按照help pkg中的说明)?我没有设置或尝试设置local_listglobal_list.
您是否尝试过自己创建octave_packages文件?否.它是在安装symbolic后自动创建的.
在安装之前是否设置了pkg前缀?否.

PS2: Clarifications called for given a comment: I did not do anything other than expanding the original zip file, and installing symbolic. The answers are then implied, but I make them explicit anyway.
Where did you install the rest? I did not do it; they were built into the .zip.
How did you try to install them? I did not.
Why are you not installing via forge? Because I already had the installer for symbolic downloaded.
Did you try setting a local_list in the same way as global_list (and as described in help pkg)? I did not set or try to set either local_list or global_list.
Have you tried creating an octave_packages file yourself? No. It was created automatically upon installing symbolic.
Did you set a pkg prefix before installing? No.

推荐答案

执行

pkg rebuild

从文档中:

'rebuild'
      Rebuild the package database from the installed directories.
      This can be used in cases where the package database has been
      corrupted.

执行完此操作后,您应该会看到pkg list命令列出的所有软件包,并且可以根据需要加载它们.

Once you do this, you should see all packages listed with the pkg list command and you can load them as necessary.

话虽如此,我鼓励您将其作为错误报告给octave错误跟踪程序(如果尚不存在),因为我同意,这不太可能是理想的首次运行体验(当然不是)通过.exe安装程序).一定有人忘记了包含一个有效的,预先生成的octave_packages文件,正如您所指出的那样,该zip文件中缺少该文件.

Having said that, I would encourage you to report this as a bug to the octave bug tracker (if it's not there already), since, I agree, this is unlikely to be the desired first-run experience (it certainly isn't via the .exe installer). Someone must have forgotten to include a valid, pre-generated octave_packages file, which as you point out is missing from the zipfile.

这篇关于无法加载share \ octave \ packages中可用但未在share \ octave \ octave_packages中列出的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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