help-octave
[Top][All Lists]
Advanced

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

Re: Octave-4 not loading all my packages


From: Mike Miller
Subject: Re: Octave-4 not loading all my packages
Date: Thu, 24 Dec 2015 10:01:38 -0500
User-agent: Mutt/1.5.24 (2015-08-30)

On Thu, Dec 24, 2015 at 15:19:03 +1100, Terry Duell wrote:
> Hello All,
> Here is a little problem I have had for a while now, which I have been
> unable to fix.
> My .octaverc file is meant to load all my packages, but doesn't.
> When I start Octave I get some error messages related to that, but it isn't
> obvious to me what I need to do to correct things.
> Here is my .octaverc file, the start up message from Octave, and the result
> of a 'pkg list' command.
> I am probably overlooking something obvious.
> Any help will be much appreciated.

First, did you know about "pkg load all"?

Further package-specific ideas below:

> warning: function /home/terry/octave/plot-1.1.0/zoom.m shadows a core
> library function
> warning: called from
>     load_packages_and_dependencies at line 47 column 5
>     load_packages at line 60 column 3
>     pkg at line 422 column 7
>     /usr/share/octave/4.0.0/m/startup/octaverc at line 20 column 1

This is probably normal, I don't use the plot package, I have no idea
what it's useful for.

> warning: function /home/terry/octave/java-1.2.9/javamem.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/listdlg.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/javafields.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/inputdlg.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/questdlg.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/javaaddpath.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/javamethods.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/javaArray.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/warndlg.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/javarmpath.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/errordlg.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/javaclasspath.m shadows a
> core library function
> warning: function /home/terry/octave/java-1.2.9/msgbox.m shadows a core
> library function
> warning: function /home/terry/octave/java-1.2.9/helpdlg.m shadows a core
> library function

You should not have the java package installed in Octave 4.0 or higher.
The java functions have been integrated into Octave and the package is
now no longer needed. It may not be hurting yet, but it's definitely not
helping.

> error: __which__: 
> /home/terry/octave/image-2.4.1/x86_64-redhat-linux-gnu-api-v50+/bwconncomp.oct:
> failed to load: 
> /home/terry/octave/image-2.4.1/x86_64-redhat-linux-gnu-api-v50+/bwconncomp.oct:
> undefined symbol: _ZNK5ArrayISsE17resize_fill_valueEv
> error: called from
>     which at line 31 column 7
>     /home/terry/octave/image-2.4.1/x86_64-redhat-linux-gnu-api-v50+/PKG_ADD
> at line 2 column 1
>     load_packages_and_dependencies at line 47 column 5
>     load_packages at line 60 column 3
>     pkg at line 422 column 7
>     /home/terry/.octaverc at line 7 column 2
> error: evaluating argument list element number 2
> error: called from
>     /home/terry/octave/image-2.4.1/x86_64-redhat-linux-gnu-api-v50+/PKG_ADD
> at line 2 column 1
>     load_packages_and_dependencies at line 47 column 5
>     load_packages at line 60 column 3
>     pkg at line 422 column 7
>     /home/terry/.octaverc at line 7 column 2

When you see undefined symbols errors from oct-files, it usually means
the oct-file needs to be recompiled. Try uninstalling and reinstalling
the image package. In this case my guess is you installed the image
package under Octave 3.8 and then started using 4.0 without reinstalling
the package.

So in summary, uninstall java, reinstall image, and try "pkg load all"
and see if you get the desired outcome.

-- 
mike



reply via email to

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