如何在 Gnu Octave 中安装软件包?例如,在将 splines-package 下载到我的主目录中后,我尝试使用它:
Octave1>> pkg install splines-1.0.7.tar.gz
Run Code Online (Sandbox Code Playgroud)
我收到以下错误消息:
couldn't create installation directory /usr/share/octave/packages/3.2/splines-1.0.7
: Permission denied
error: called from `pkg>copy_files' in file /usr/share/octave/3.2.4/m/pkg/pkg.m near line 1431, column 7
error: called from:
error: /usr/share/octave/3.2.4/m/pkg/pkg.m at line 756, column 5
error: /usr/share/octave/3.2.4/m/pkg/pkg.m at line 287, column 7
Run Code Online (Sandbox Code Playgroud) package-management command-line octave software-installation