help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'pkg' undefined


From: Bayle Shanks
Subject: Re: 'pkg' undefined
Date: Sun, 1 Sep 2019 15:21:49 -0700

Nevermind, it was a permissions issue; i needed to give read permissions as well as execute to those directories:

sudo find /usr/local/libexec -type d -exec chmod a+rx {} +
sudo find /usr/local/bin/octave* -type d -exec chmod a+rx {} +
sudo find /usr/local/lib/octave* -type d -exec chmod a+rx {} +
sudo find /usr/local/octave* -type d -exec chmod a+rx {} +
sudo find /usr/local/share/octave* -type d -exec chmod a+rx {} +
sudo find /usr/local/share/man/man1/octave* -type d -exec chmod a+rx {} +
sudo find /usr/local/share/info/octave* -type d -exec chmod a+rx {} +

On Sun, Sep 1, 2019 at 3:14 PM Bayle Shanks <address@hidden> wrote:
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.html

Read 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]