On Jan 8, 2009, at 15:25 , Zarabozo, Francisco (GE, Corporate) wrote:
> Hello Gisle, thanks for your answer.
>
>> ppm initialize install areas from perl's @INC variable when it
>> starts up. Compare:
>>
>> % ppm area list
>> % perl -le "print for @INC"
>> % perl -V:sitelib
>>
>> What output do these commands give you?
>
> C:\>ppm area list
> ?????????????????????????????????????
> ? name ? pkgs ? lib ?
> ?????????????????????????????????????
> ? (usr) ? n/a ? D:/usr/site/lib ?
> ? (usr_2) ? n/a ? D:/usr/lib ?
> ? site* ? 1 ? C:/Perl/site/lib ?
> ? perl ? 0 ? C:/Perl/lib ?
> ?????????????????????????????????????
>
> C:\>perl -le "print for @INC"
> D:/usr/site/lib
> D:/usr/lib
> .
>
> C:\>perl -V:sitelib
> sitelib='C:\Perl\site\lib';
This is the problem. This value ought to have been "D:\usr\site
\lib". If ppm does not find a values in @INC that match up with
$Config{privlib} and $Config{sitelib} it will add them as the install
areas 'perl' and 'site' and use them.
The %Config values are picked up from the file D:\usr\lib\Config.pm
(and D:\usr\lib\Config_heavy.pl). When you install ActivePerl will
relocate these files so that the paths match the location where perl
was installed.
>> A possible way that @INC could still be set to include C:\Perl\site
>> \lib is via the PERL5LIB envirionment variable.
>>
>
> C:\>echo %PERL5LIB%
> %PERL5LIB%
>
> (that environment variable is not set, I checked)
>
>
> I ran the command "perl --help" to see what -V flag does, and after
> reading it, I opened /usr/lib/Config.pm. It had indeed set C:\Perl\
> \lib for several values, so I changed them. First question: how
> could that file get changed when it was in a completely different
> installation folder than the last Perl installation I made? Also, in
> the same place, there's a Config.pm~ file (including the ~) with the
> correct values. Renamed by the installer or something else?
If the installer ends up updating the wrong Config.pm file that's
certainly a really bad bug. We would need to spend some time trying
to figure out if this is really the case.
> Well, after changing Config.pm, everything is still the same. The
> commands I showed before, are still returning the same values.
>
> Any ideas?
The values are also precent in the 'D:\usr\lib\Config_heavy.pl' file.
Perhaps that need change as well.
--Gisle
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs