mfiles installed with pkg -auto install are not found
David Bateman
David.Bateman at motorola.com
Fri Feb 15 07:44:14 CST 2008
Eric Chassande-Mottin wrote:
>> What happens when you quit
>> and restart Octave? Is the package available?
>>
>
> this is what I do in the above test. hilbert.m is
> not loaded after a quit/restart of Octave.
>
Ok, missed that.. Then it is clear that the package has not been flagged
as autoloaded at all. The signal package is autoloaded by default and so
not using the "-auto" flag should work for what you want.
>> Are you running as a user
>> or as root? In any case I can't duplicate this under 3.0.0 on my machine..
>>
>
> as a simple user.
> is there anything I can do to understand what happens ?
>
Look in ~/octave/signal-1.0.5 for a file .autoload that should be
created by the install process. I can duplicate this issue and so can't
really suggest a solution. As a temporary fix
touch ~/octave/signal-1.0.5/.autoload
should get the issue fixed at least for this package..
If you really want to try and debug this issue at about line 720 in
Octave 3.0.0's version of pkg.m you'll find the code
for i = length (descriptions):-1:1
if (autoload > 0 || (autoload == 0 && isautoload (descriptions(i))))
fclose (fopen (fullfile (descriptions{i}.dir, "packinfo",
".autoload"), "wt"));
descriptions{i}.autoload = 1;
endif
endfor
insert a keyboard statement just inside the for-loop and see what the
values of autoload, descriptions(i), isautoload (descriptions(i)) and
descriptions{i}.autoload are..
Regards
David
> eric.
>
>
--
David Bateman David.Bateman at motorola.com
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
More information about the Bug-octave
mailing list