Hi, i just built Octave 5.1.0 from source on Ubuntu 19.04. When i try to use the 'pkg' command, i get "error: 'pkg' undefined".
In more detail, to build and install i did roughly something like:
--------------------------------------------
sudo apt-get make-dep octave
./configure && make
sudo make install
sudo chmod a+x /usr/local/bin/octave
sudo chmod a+x /usr/local/libexec/octave/5.1.0/exec/x86_64-pc-linux-gnu/octave-gui
sudo find /usr/local/libexec -type d -exec chmod a+x {} +
sudo find /usr/local/bin/octave* -type d -exec chmod a+x {} +
sudo find /usr/local/lib/octave* -type d -exec chmod a+x {} +
sudo find /usr/local/octave* -type d -exec chmod a+x {} +
sudo find /usr/local/share/octave* -type d -exec chmod a+x {} +
sudo find /usr/local/share/man/man1/octave* -type d -exec chmod a+x {} +
sudo find /usr/local/share/info/octave* -type d -exec chmod a+x {} +
--------------------------------------------
And here's what my session looks like:
--------------------------------------------
$ /usr/local/bin/octave
GNU Octave, version 5.1.0
Copyright (C) 2019 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type 'warranty'.
Octave was configured for "x86_64-pc-linux-gnu".
Additional information about Octave is available at
https://www.octave.org.
Please contribute if you find this software useful.
For more information, visit
https://www.octave.org/get-involved.htmlRead
https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.
octave:1> pkg
error: 'pkg' undefined near line 1 column 1
octave:1> exit
error: feval: function '__finish__' not found
error: ignoring const execution_exception& while preparing to exit
--------------------------------------------
Any advice?
thanks,
bayle