develooper Front page | perl.perl5.porters | Postings from May 2008

Re: Re: [perl #53328] Trying to build perl5.8.3 under Maemo environment

Thread Next
From:
devendra purbiya
Date:
May 27, 2008 03:04
Subject:
Re: Re: [perl #53328] Trying to build perl5.8.3 under Maemo environment
Message ID:
e474a8b40805262300s7e800fd6i5700e2eaddb9899a@mail.gmail.com
>> As the message says, *Perl* can't find its own working directory. What
>> does to following onliner prints on *your* system?
>>
>> $ *perl* -MCwd -le 'print join$/,*cwd*(),fastcwd(),getcwd(),fastgetcwd()'

>>
>> Then again, I'd suggest to try with *Perl* 5.8.8 or even 5.10.0 because
>> they most probably include Configure fixes.
>>
>> I tried running the above command and I get the following results
>> [sbox-cosmos0.1.4_i386: ~/*PERL*/*perl*-5.8.8] > *perl* -MCwd -le 'print
>> join$/,*cwd*(),fastcwd(),getcwd(),fastgetcwd()'
>> /home/cosmos3/*PERL*/*perl*-5.8.8
>> /home/cosmos3/*PERL*/*perl*-5.8.8
>> /home/cosmos3/*PERL*/*perl*-5.8.8
>> /home/cosmos3/*PERL*/*perl*-5.8.8
>>
>> So I feel that it is working properly.
>> I am not sure what else should I try.

> First let's clarify something: is a version of *perl* already installed?

Yes a perl wrapper is already installed. I can see that from the output of
the following commands.

[sbox-cosmos0.1.4_i386: ~/PERL/perl-5.8.8] > which perl
/scratchbox/tools/bin/perl
[sbox-cosmos0.1.4_i386: ~/PERL/perl-5.8.8] > ls -l
/scratchbox/tools/bin/perl
lrwxrwxrwx  1 root root 15 Apr 22 20:50 /scratchbox/tools/bin/perl ->
sb_perl_wrapper
[sbox-cosmos0.1.4_i386: ~/PERL/perl-5.8.8] > ls -l
/scratchbox/tools/bin/sb_perl_wrapper
-rwxr-xr-x  1 root root 20776 Aug  1  2007
/scratchbox/tools/bin/sb_perl_wrapper


> Can you run the following code:

*> perl* -MCwd -le 'print $INC{"*Cwd*.pm"};print
> join$/,*cwd*(),fastcwd(),getcwd(),fastgetcwd()'

> Also try:

> /home/cosmos3/*PERL*/*perl*-5.8.8/*perl* -MCwd -le 'print $INC{"*Cwd*.pm"};print

> join$/,*cwd*(),fastcwd(),getcwd(),fastgetcwd()'

> and:

> /home/cosmos3/*PERL*/*perl*-5.8.8/*perl* -Ilib -MCwd -le 'print $INC{"*Cwd
*.pm"};print
> join$/,*cwd*(),fastcwd(),getcwd(),fastgetcwd()'

The outputs of the above commands is as follows
[sbox-cosmos0.1.4_i386: ~/PERL/perl-5.8.8] > perl -MCwd -le 'print
$INC{"Cwd.pm"};print join$/,cwd(),fastcwd(),getcwd(),fastgetcwd()'
/scratchbox/tools/lib/perl5/5.8.4/i686-linux-thread-multi/Cwd.pm
/home/cosmos3/PERL/perl-5.8.8
/home/cosmos3/PERL/perl-5.8.8
/home/cosmos3/PERL/perl-5.8.8
/home/cosmos3/PERL/perl-5.8.8
[sbox-cosmos0.1.4_i386: ~/PERL/perl-5.8.8] >
/home/cosmos3/PERL/perl-5.8.8/perl -MCwd -le 'print $INC{"Cwd.pm"};print
join$/,cwd(),fastcwd(),getcwd(),fastgetcwd()'
Can't locate Cwd.pm in @INC (@INC contains:
/scratchbox/devkits/maemo3-tools/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
/etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl .).
BEGIN failed--compilation aborted.
[sbox-cosmos0.1.4_i386: ~/PERL/perl-5.8.8] >
/home/cosmos3/PERL/perl-5.8.8/perl -Ilib -MCwd -le 'print
$INC{"Cwd.pm"};print join$/,cwd(),fastcwd(),getcwd(),fastgetcwd()'
lib/Cwd.pm

/home/cosmos3/PERL/perl-5.8.8
/home/cosmos3/PERL/perl-5.8.8

So I think second command is failing.
Regards,
Devendra.


> Kind regards,

> Bram

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About