help-octave
[Top][All Lists]
Advanced

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

Re: leasqr(optim-1.0.16) fails with `cell2cell' undefined near line 69


From: Juergen Rose
Subject: Re: leasqr(optim-1.0.16) fails with `cell2cell' undefined near line 69 column 17
Date: Mon, 26 Mar 2012 00:38:44 +0200

Am Friday, den 23.03.2012, 11:50 +0100 schrieb Philip Nienhuis:
> Juergen Rose wrote:
> > Am Donnerstag, den 22.03.2012, 13:39 -0700 schrieb PhilipNienhuis:
> >> Juergen Rose wrote
> >>>
> >>> Am Donnerstag, den 22.03.2012, 13:52 +0000 schrieb Richardson, Anthony:
> >>>>> -----Original Message-----
> >>>>> From: help-octave-bounces@ [mailto:help-octave-
> >>>>> address@hidden On Behalf Of Juergen Rose
> >>>>> Sent: Thursday, March 22, 2012 8:32 AM
> >>>>> To: help-octave@
> >>>>> Subject: leasqr(optim-1.0.16) fails with `cell2cell' undefined near
> >>>> line 69
> >>>>> column 17
> >>>>>
> >>> ...
> >>>>>
> >>>>> Any hint is deeply appreciated.
> >>>>
...
> Looks like the binary files from the miscellaneous package haven't been 
> installed properly somehow.
> 
> Can you check (in Octave):
>   which cell2csv
>   which csv2cell
>   which waitbar
>   which csvexplode
>   which csvconcat
>   which partarray
>   which xmlread
> 
> If you can't find them, check if the miscellaneous subdir is in the 
> path. In Octave do
>   path
> and look for something like
> "miscellaneous-1.0.11/i686-pc-linux-gnu-api-v48+"
> (with some part of a file path prepended)
> 
> If this doesn't lead to success, try to simply reinstall the 
> miscellaneous pkg, first by your distro's package management system, if 
> that still fails,  directly from Sourceforge.
> (in Octave:)
>   pkg install -forge -verbose miscellaneous
> 
> It looks like you need to be root to do this (otherwise Octave wouldn't 
> have the script files under /usr/share/......   )
> 
> Philip

Hi Philip,

I tried your hints:
address@hidden:/home/rose(3)$ octave
GNU Octave, version 3.6.1
...
octave:1> which cell2csv
octave:2> which csv2cell
octave:3> which waitbar
`waitbar' is a function from the
file /usr/share/octave/3.6.1/m/plot/waitbar.m
octave:4> which csvexplode
octave:5> which csvconcat
octave:6> which partarray
octave:7> which xmlread

But I have the same results at my other systems, where leasqr works:
address@hidden:/home/rose/Txt/src/Test/Octave(12)# octave
GNU Octave, version 3.6.1
...
warning: function /usr/share/octave/packages/specfun-1.0.9/erfcx.m
shadows a built-in function
octave:1> which cell2csv
octave:2> which csv2cell
octave:3> which waitbar
`waitbar' is a function from the
file /usr/share/octave/3.6.1/m/plot/waitbar.m
octave:4> which csvexplode
octave:5> which csvconcat
octave:6> which partarray
octave:7> which xmlread
octave:8> source leasqr_test_2.m
f =

    1.1536
    2.1451
    3.9891
    7.4179
   13.7941

p =

   0.62034
   0.62034

cvg =  1
iter =  7

Path shows the miscellaneous package (miscellaneous-1.0.11):

address@hidden:/home/rose(3)$ octave
GNU Octave, version 3.6.1
...
octave:7> which xmlread
octave:8> path

Octave's search path contains the following directories:

.                                                        
/usr/share/octave/3.6.1/m/geometry                       
/usr/share/octave/3.6.1/m/elfun
/usr/share/octave/packages/optim-1.0.16                  
/usr/share/octave/3.6.1/m/signal                         
/usr/share/octave/3.6.1/m/io
/usr/share/octave/packages/struct-1.0.9                  
/usr/share/octave/3.6.1/m/specfun                        
/usr/share/octave/3.6.1/m/testfun
/usr/share/octave/packages/miscellaneous-1.0.11          
/usr/share/octave/3.6.1/m/statistics                     
/usr/share/octave/3.6.1/m/sparse
/usr/lib64/octave/3.6.1/site/oct/x86_64-pc-linux-gnu     
/usr/share/octave/3.6.1/m/statistics/models              
/usr/share/octave/3.6.1/m/optimization
/usr/lib64/octave/site/oct/api-v48
+/x86_64-pc-linux-gnu  /usr/share/octave/3.6.1/m/statistics/distributions       
/usr/share/octave/3.6.1/m/help
/usr/lib64/octave/site/oct/x86_64-pc-linux-gnu           
/usr/share/octave/3.6.1/m/statistics/tests               
/usr/share/octave/3.6.1/m/pkg
/usr/share/octave/3.6.1/site/m                           
/usr/share/octave/3.6.1/m/statistics/base                
/usr/share/octave/3.6.1/m/strings
/usr/share/octave/site/api-v48
+/m                        /usr/share/octave/3.6.1/m/prefs                      
    /usr/share/octave/3.6.1/m/time
/usr/share/octave/site/m                                 
/usr/share/octave/3.6.1/m/miscellaneous                  
/usr/share/octave/3.6.1/m/deprecated
/usr/share/octave/site/m/startup                         
/usr/share/octave/3.6.1/m/polynomial                     
/usr/share/octave/3.6.1/m/general
/usr/lib64/octave/3.6.1/oct/x86_64-pc-linux-gnu          
/usr/share/octave/3.6.1/m/audio                          
/usr/share/octave/3.6.1/m/path
/usr/share/octave/3.6.1/m                                
/usr/share/octave/3.6.1/m/plot                           
/usr/share/octave/3.6.1/m/set
/usr/share/octave/3.6.1/m/special-matrix                 
/usr/share/octave/3.6.1/m/image
/usr/share/octave/3.6.1/m/linear-algebra                 
/usr/share/octave/3.6.1/m/startup



Then I deinstalled miscellaneous and reinstalled it again with the tools
of Gentoo (emerge -vD miscellaneous). It tells me that it is installing
in the following directories:

octave commands will install into the following directories:
   m-files:   /usr/share/octave/3.6.1/site/m/octave-forge

oct-files: /usr/lib64/octave/3.6.1/site/oct/x86_64-pc-linux-gnu/octave-forge
   binaries:  /usr/libexec/octave/3.6.1/site/exec/x86_64-pc-linux-gnu
alternatives:
   m-files:   /usr/share/octave/3.6.1/site/octave-forge-alternatives/m

oct-files: 
/usr/lib64/octave/3.6.1/site/octave-forge-alternatives/oct/x86_64-pc-linux-gnu


But after this reinstallation of miscellaneous 'source leasqr_test_2.m'
fails with exactly the same error. So I deinstalled miscellaneous again
and installed it again with 'pkg install -forge -verbose miscellaneous'
inside octave:

octave:1> pkg install -forge -verbose miscellaneous

mkdir (/tmp/oct-LWGwMg)
untar
(/home_wildcat/rose/Txt/src/Test/Octave/miscellaneous-1.1.0.tar.gz, 
/tmp/oct-LWGwMg)
make: Entering directory `/tmp/oct-LWGwMg/miscellaneous/src'
mkoctfile -Wall cell2cell.cc
mkoctfile -Wall partarray.cc
mkoctfile -Wall sample.cc
mkoctfile -Wall text_waitbar.cc
make: Leaving directory `/tmp/oct-LWGwMg/miscellaneous/src'
copyfile /tmp/oct-LWGwMg/miscellaneous/src/cell2cell.oct 
/tmp/oct-LWGwMg/miscellaneous/src/partarray.oct 
/tmp/oct-LWGwMg/miscellaneous/src/sample.oct 
/tmp/oct-LWGwMg/miscellaneous/src/text_waitbar.oct 
/tmp/oct-LWGwMg/miscellaneous/inst/x86_64-pc-linux-gnu-api-v48+
For information about changes from previous versions of the
miscellaneous package, run 'news ("miscellaneous")'.

octave:2> source leasqr_test_2.m
error: `cell2cell' undefined near line 69 column 17
error: called from:
error:   /usr/share/octave/packages/optim-1.0.16/__dfdp__.m at line 69,
column 15
error:   /usr/share/octave/packages/optim-1.0.16/dfdp.m at line 70,
column 7
error:    at line -1, column -1
error:   /usr/share/octave/packages/optim-1.0.16/__lm_svd__.m at line
176, column 9
error:   /usr/share/octave/packages/optim-1.0.16/leasqr.m at line 583,
column 26
error:   /home_wildcat/rose/Txt/src/Test/Octave/leasqr_test_2.m at line
22, column 20


So nothing has changed for leasqr_test_2.m.

Further ideas are appreciated.

Regards Juergen




reply via email to

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