error: 'pkg' undefined

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

error: 'pkg' undefined

stevebiggs
Hi,

I have just installed octave 4.2.0 from source. What is there appears to be working. However, I need the symbolic package so I tried:

pkg install -forge symbolic

but I get an error message:

error: 'pkg' undefined near line 1 column 1

Also, when I start octave, I get the following error messages before the version number, welcome message, etc:

error: '__all_opts__' undefined near line 2 column 6
error: execution exception in /usr/local/share/octave/4.2.0/m/optimization/PKG_ADD

So, what's the problem?

Many thanks,
Steve


Reply | Threaded
Open this post in threaded view
|

Re: error: 'pkg' undefined

PhilipNienhuis
stevebiggs wrote
Hi,

I have just installed octave 4.2.0 from source. What is there appears to be working. However, I need the symbolic package so I tried:

pkg install -forge symbolic

but I get an error message:

error: 'pkg' undefined near line 1 column 1

Also, when I start octave, I get the following error messages before the version number, welcome message, etc:

error: '__all_opts__' undefined near line 2 column 6
error: execution exception in /usr/local/share/octave/4.2.0/m/optimization/PKG_ADD

So, what's the problem?
Judging from the error messages and taking into account that "pkg" is a core octave function, it looks like your Octave installation is borked.
Have you tried reinstalling Octave?

Philip
Reply | Threaded
Open this post in threaded view
|

Re: error: 'pkg' undefined

stevebiggs
Hi Philip,

Thanks for your help. Re-building did indeed work. Turns out the problem was that I had Qt4 and Qt5 installed but only Qt4 had the extras installed (dev-tools, language modules, etc) but octave was configured to use Qt5. Re-configuring with --qt-ver=4 (or something like that) did the trick. All working great now.

Thanks again,
Steve




On 15 February 2017 at 20:53, PhilipNienhuis [via Octave] <[hidden email]> wrote:
stevebiggs wrote
Hi,

I have just installed octave 4.2.0 from source. What is there appears to be working. However, I need the symbolic package so I tried:

pkg install -forge symbolic

but I get an error message:

error: 'pkg' undefined near line 1 column 1

Also, when I start octave, I get the following error messages before the version number, welcome message, etc:

error: '__all_opts__' undefined near line 2 column 6
error: execution exception in /usr/local/share/octave/4.2.0/m/optimization/PKG_ADD

So, what's the problem?
Judging from the error messages and taking into account that "pkg" is a core octave function, it looks like your Octave installation is borked.
Have you tried reinstalling Octave?

Philip


If you reply to this email, your message will be added to the discussion below:
http://octave.1599824.n4.nabble.com/error-pkg-undefined-tp4681878p4681881.html
To unsubscribe from error: 'pkg' undefined, click here.
NAML