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

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

Thread Next
From:
devendra purbiya
Date:
May 26, 2008 09:47
Subject:
Re: [perl #53328] Trying to build perl5.8.3 under Maemo environment.
Message ID:
e474a8b40805260608k757ccc4fv4743cc57c5e2140@mail.gmail.com
 devendra purbiya wrote via RT:

> Hi,
> I am trying to build perl under Maemo X86 target. But I get the
> errors
>
> make[2]: Leaving directory `/home/devendra/perl-5.8.3/x2p'
>
> Making B (dynamic)
> Can't figure out your cwd! at ../../lib/ExtUtils/MakeMaker.pm line
> 163.
> Warning: No Makefile!
>
> Since Maemo environment requires this version of perl. So I am trying
> to build it.

Given how Perl is backward compatible, I wonder why you'd want this
very version and not 5.8.8.
In fact, as demonstrated by Laurent Gautrot in the French Perl
Workshop 2006, bleadperl compiled fine for him. Slides are in French,
but the commands may still help you:
ยป http://conferences.mongueurs.net/fpw2006/slides/perl-nokia770.html

I tried downloading the source of 5.8.8 and tried building it. It has the
same problem. I tried going through those slides ... but the problem remains
the same. I tried modifying lib/ExtUtils/MakeMaker.pm to get cwd(), but it
does not work as well.


> Can you please tell me what is going wrong here?


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.

Thanks.
Devendra.

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