spurious load_path warnings when octave is started at Unix root directory

Alexander Mamonov mamon at rice.edu
Wed Sep 10 14:56:50 CDT 2008


I'm sorry, this is my first time I write to Octave lists, so I'm not
familiar with the procedure.

Initially I thought that it might be that the problem is package-related.
There are three packages on my system that use the
/usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu/ directory.
These are: octave-sp, octave-plplot, and octaviz.
The first two have one file each
/usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu/sp.oct
and
/usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu/plplot_octave.oct
Octaviz has its own subdirectory with many .oct files
/usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu/octaviz
But if I uninstall all three of the above packages I get the same kind of
warning under the same conditions about the directory
./usr/share/octave/3.0.2/site/m
which again has a relative path instead of an absolute one.

Thank you,
Alex

On Wed, Sep 10, 2008 at 2:07 PM, John W. Eaton <jwe at bevo.che.wisc.edu> wrote:
> Please reply on the list so that others may comment.
>
> Thanks,
>
> jwe
>
> On 10-Sep-2008, Alexander Mamonov wrote:
>
> | Hello,
> |
> | Thank you for a fast reply.
> | By "Unix root directory" I mean "/".
> | When I start octave with --norc the behavior is still the same. Here
> | is how the first lines of the output of the path command look like:
> | octave:6> path
> |
> | Octave's search path contains the following directories:
> |
> | .
> | /usr/share/octave/3.0.2/m/statistics
> | /usr/share/octave/3.0.2/m/path
> | ./usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu
> | /usr/share/octave/3.0.2/m/statistics/models
> | /usr/share/octave/3.0.2/m/linear-algebra
> |
> | as you can see ./usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu is
> | listed with a dot, i.e. as a relative path.
> |
> | Thank you,
> | Alex
> |
> | On Wed, Sep 10, 2008 at 12:15 PM, John W. Eaton <jwe at bevo.che.wisc.edu> wrote:
> | > On 10-Sep-2008, Alexander Mamonov wrote:
> | >
> | > | Bug report for Octave 3.0.2 configured for i486-pc-linux-gnu
> | > |
> | > | Description:
> | > | -----------
> | > |
> | > | When Octave is started in Unix root directory, warnings from the
> | > | load_path appear whenever the
> | > | current directory is changed. On my machine the warning is
> | > | warning: load_path:
> | > | ./usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu: No such file or
> | > | directory
> | > |
> | > | If I type the path command, then the path
> | > | ./usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu
> | > | is indeed displayed as a relative path, unlike all other paths, which
> | > | are displayed as absolute paths.
> | > |
> | > | If Octave is started in any other directory, then no warnings appear,
> | > | and in the output of the path command
> | > | the path /usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu is
> | > | displayed correctly as the absolute path.
> | > |
> | > | Repeat-By:
> | > | ---------
> | > |
> | > | Start octave in unix root directory. Go to any other directory, for example
> | > | cd home
> | > | As a result the warning will appear
> | > | warning: load_path:
> | > | ./usr/lib/octave/site/oct/api-v32/i486-pc-linux-gnu: No such file or
> | > | directory
> | >
> | > I'm unable to reproduce this problem.  What do you mean by "Unix root
> | > directory"?  Do you mean / or your home directory or something else?
> | >
> | > What happens if you start Octave with --norc?
> | >
> | > jwe
> | >
> | >
>
>


More information about the Bug-octave mailing list