User Tools

Site Tools


resources:octave_software

GNU Octave Software Resources

Installing Octave packages

[These notes are from Anthony's efforts on the Ubuntu 14.04 VirtualBox virtual machine running on his 2015 Macbook Air laptop.]

<2016-01-17>

Started installing packages on Octave via Octave command line.

When tried to install stats package:

>> pkg install -forge statistics
warning: creating installation directory /home/anthony/octave
warning: called from
    install at line 30 column 5
    pkg at line 405 column 9
error: the following dependencies were unsatisfied:
   statistics needs io >= 1.0.18

Got this message for this package:

>> pkg install -forge io
pkg: please install the Debian package "liboctave-dev" to get th
error: called from '__gripe_missing_component__' in file /usr/sh_.m near line 53, column 3

… so I did this on terminal command line:

sudo apt-get update
sudo apt-get install liboctave-dev

Which ran without error message.

Then typed

>> pkg install -forge io

again, and got not error message, but couldn't find any evidence that the io functions exist. “which” and “help” show that functions aren't there, even after rehashing and restarting Octave.

Weirdly, I can show this:

>> pkg list
Package Name  | Version | Installation directory
--------------+---------+-----------------------
          io  |   2.4.0 | /home/anthony/octave/io-2.4.0

I searched for help, and this page

https://www.gnu.org/software/octave/doc/interpreter/Installing-and-Removing-Packages.html

described an “-auto” flag that loads the packages automatically, so maybe “loading” is an extra step.

Yep:

>> pkg load all

Does the trick. I'll have to look up how to load automatically at startup.

In the meantime, I'll try installing stats package again.

Will also install econometrics package, because it has MLE functions.

Had to install optim and struct packages as dependencies first.

resources/octave_software.txt · Last modified: 2019/05/22 16:08 (external edit)