手动安装Octave软件包



我想在我的一台服务器上安装Octave的dataframe包,这台服务器没有互联网接入。我用笔记本电脑下载了dataframe-1.1.0.tar.gz

在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。

根据Octave文档:

37.1安装和移除包

假设在image-1.0.0.tar.gz文件中有可用的包,它可以使用命令

从Octave提示符安装
pkg install image-1.0.0.tar.gz

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

最新更新