Reputation: 471
My newly installed Octave is not recognizing installed packages:
>> pkg install -forge quaternion
For information about changes from previous versions of the quaternion package, run 'news quaternion'.
>> pkg list
no packages installed.
>>
I'm using Octave-4.0.3 on Windows 10. The install operation updates the appropriate files under c:\Octave\Octave-4.0.3\share\octave\packages\
and c:\Octave\Octave-4.0.3\lib\octave\packages\
. An install from local file (not using -forge
) produces the same results.
What am I missing?
Upvotes: 1
Views: 1753
Reputation: 471
This was a usage problem on my part. I had defined a function called load
which shadowed the built-in function of the same name and prevented pkg
from working correctly.
Unfortunately there is not a warning that a built-in is being shadowed as you add it, but I saw the warning when changing the current working directory away from and then back to the one where I had the function stored. Tip for Octave beginners like me: Before you write a function with a generic name, check first if a function with that name already exists (eg with help functionName
)!
Upvotes: 1