【问题标题】:Install Octave Package Manually手动安装 Octave 包
【发布时间】:2015-12-06 21:04:03
【问题描述】:

我想在我的一台服务器上安装 Octave 的软件包 dataframe,该服务器无法访问 Internet。我用我的笔记本电脑下载了dataframe-1.1.0.tar.gz。我想知道如何手动将它安装在我的服务器上。

【问题讨论】:

  • 链接的内容确实提到了安装包,但没有提到手动安装。
  • @James 链接的内容是关于手动安装的。这是第一句话,第一个例子就是你问题的答案。

标签: installation octave packages local


【解决方案1】:

根据 Octave 文档:

37.1 Installing and Removing Packages

假设一个包在文件 image-1.0.0.tar.gz 中可用,它可以 使用命令从 Octave 提示符安装

pkg install image-1.0.0.tar.gz

如果软件包安装成功,则不会打印任何内容 提示,但如果在安装过程中发生错误,它将是 报道。可以一次安装多个包 在 pkg install 命令之后编写几个包文件。如果一个 已经安装了不同版本的软件包 在安装新软件包之前删除。这使得很容易 升级和降级软件包的版本,但使其 不可能安装同一个包的多个版本 一次。

【讨论】:

  • 这是否适用于在 Arm 64 位处理器上运行的 Linux?
【解决方案2】:

在 Octave 4.0.0 文件夹的 README.html 中,您可以找到以下段落: Included Octave Forge Packages A number of Octave-Forge packages have been included with Octave, however they must be installed in order to use them. To install: • Start Octave and then open the build_packages.m file found in the src folder where Octave was installed. • Run the script build_packages.m to build and install the packages. Installation is a one-time procedure. After installation packages must still be loaded in order to use them with the pkg load PACKAGENAME command. Other packages are available from Octave-Forge. 对于 Octave 未包含的其他软件包,您需要做的是:从 http://octave.sourceforge.net/packages.php 下载软件包。然后把包放到src文件夹下,在执行前分别修改build_packages.m。

【讨论】:

    猜你喜欢
    • 2017-01-02
    • 2011-11-15
    • 1970-01-01
    • 2012-12-25
    • 2018-06-18
    • 1970-01-01
    • 2020-10-12
    • 1970-01-01
    相关资源
    最近更新 更多