Re: install rakudo

2012-06-04 Thread Marc Chantreux
hello Patrick, 
 
> I'm guessing the error message you got in 
> https://gist.github.com/2868058 comes from your Perl 5
> installation looking in $PWD/lib for modules,

you're right! and it's about my config.
i just added 2 lines to the script to make it work.

Thanks a lot and regards,
marc 

set -e
export PERL5LIB
PERL5LIB=
dist=rakudo-star-2012.05
base=https://github.com/downloads/rakudo/star

curl --location $base/$dist.tar.gz |
gzip -cd |
tar x

cd $dist
perl Configure.pl --gen-parrot
make
make install


Re: install rakudo

2012-06-04 Thread Patrick R. Michaud
On Mon, Jun 04, 2012 at 02:38:05PM +0200, Marc Chantreux wrote:
> hello guys,
> 
> French Perl Workshop are comming and i hope a show around perl6. so i
> started to write a script that can be easy to pipe to a shell to install
> perl6.
> 
> https://gist.github.com/2868089 
> 
> i started it but it fail after nqp install:
> 
> https://gist.github.com/2868058
> 
> I have to admit i didn't investigate a lot but i really would like this
> script to work at Strasbourg (1 a month). Any idea ? 

Your script worked for me, after two modifications:
   1.  Add the --location option to the curl command, so that
   redirects from github are honored.
   2.  Remove the trailing slash from the $base variable.

The script I used ended up looking like:

set -e
dist=rakudo-star-2012.05
base=https://github.com/downloads/rakudo/star

curl --location $base/$dist.tar.gz |
gzip -cd |
tar x

cd $dist
perl Configure.pl --gen-parrot
make
make install

I'm guessing the error message you got in 
https://gist.github.com/2868058 comes from your Perl 5
installation looking in $PWD/lib for modules, and finding
Rakudo's lib.pm in lib/lib.pm in response to Configure.pl's
"use lib" statement.  Perl 5 then complains about not
understanding the (Perl 6) @*INC variable.  I'm not sure
if looking in $PWD/lib for Perl 5 modules is unique to
your environment or something we need to handle in a more
general case.

Hope this helps,

Pm