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 c


From: Philip Nienhuis
Subject: Re: leasqr(optim-1.0.16) fails with `cell2cell' undefined near line 69 column 17
Date: Fri, 23 Mar 2012 11:50:34 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6

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.

cell2cell is in the Octave forge "miscellaneous" package.  I assume this
should have been detected as a dependency when the optim package was
installed.  Try installing the "miscellaneous" package and rerun your
test.

Tony Richardson
...

Installed, sure.

But was miscellanous also *loaded* ?

In *Octave* do
   pkg list
and check if there's an asterisk next to the miscellaneous entry like so:

          mechanics  |   1.2.0 | ...\share\octave\packages\mechanics-1.2.0
      miscellaneous *|  1.0.11 |
...\share\octave\packages\miscellaneous-1.0.11
  missing-functions  |   1.0.2 |
...\share\octave\packages\missing-functions-1.0.2

If miscellaneous appears w/o asterisk, do
   pkg load miscellaneous

The fact that you get no shadowing warning is telling us that probably the
miscellaneous pkg isn't loaded.
...

Hi Philip,

I checked this, as you can the from the following lines miscellaneous is
loaded, but nevertheless cell2cell is not found:

address@hidden:/home/rose/Txt/src/Test/Octave(16)$ octave
GNU Octave, version 3.6.1
...
octave:1>   pkg list
Package Name   | Version | Installation directory
---------------+---------+-----------------------
miscellaneous *|  1.0.11
| /usr/share/octave/packages/miscellaneous-1.0.11
         optim *|  1.0.16 | /usr/share/octave/packages/optim-1.0.16
        struct *|   1.0.9 | /usr/share/octave/packages/struct-1.0.9
        zenity  |   0.5.7 | /usr/share/octave/packages/zenity-0.5.7
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
octave:2>

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


reply via email to

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