User Tools

Site Tools


resources:octave_software

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
resources:octave_software [2016/01/18 16:59] – created anthonyresources:octave_software [2019/05/22 16:08] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +~~TOC:1-4~~
 +
 ====== GNU Octave Software Resources ====== ====== GNU Octave Software Resources ======
  
Line 5: Line 7:
 [These notes are from Anthony's efforts on the Ubuntu 14.04 VirtualBox virtual machine running on his 2015 Macbook Air laptop.] [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:
 +
 +<code>
 +>> 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
 +</code>
 +
 +Got this message for this package:
 +
 +<code>
 +>> 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
 +</code>
 +
 +... so I did this on terminal command line:
 +
 +<code>
 +sudo apt-get update
 +sudo apt-get install liboctave-dev
 +</code>
 +
 +Which ran without error message.
 +
 +Then typed
 +
 +<code>
 +>> pkg install -forge io
 +</code>
 +
 +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:
 +
 +<code>
 +>> pkg list
 +Package Name  | Version | Installation directory
 +--------------+---------+-----------------------
 +          io  |   2.4.0 | /home/anthony/octave/io-2.4.0
 +</code>
 +
 +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: 
 +
 +<code>
 +>> pkg load all
 +</code>
 +
 +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.1453154377.txt.gz · Last modified: (external edit)