Sunday, May 5, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 15660  / 3 Years ago, thu, july 15, 2021, 8:41:35

How can I install a package in Gnu Octave? I have tried, for example, with the splines-package after downloading it in my home directory with:



Octave1>> pkg install splines-1.0.7.tar.gz


I get the following error message:



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

More From » command-line

 Answers
5

run Octave as SU:



sudo octave


and then try the same as You did.


[#40410] Friday, July 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nerta

Total Points: 414
Total Questions: 103
Total Answers: 97

Location: England
Member since Wed, Apr 19, 2023
1 Year ago
;