Category: Diary Keywords: parrot pugs
I want to write something about Perl6 Rules. but it needs parrot embed to pugs.
After one day's hard attempts, I give up finally.
as follows are something I do.
- follow the instruction of parrot/README, I download the http://www-306.ibm.com/software/globalization/icu/downloads.jsp, and success to install the ICU library.
- perl Configure.pl
make
make install - now parrot is running. but it's not in my bin directory. weird.
- exprot PUGS_EMBED='parrot'
export PARROT_PATH='/usr/local/parrot-0.2.0'
perl Makefile.PL
make - make failed. and these are something I tried to go through the make.
- First, I should say the make alwasy halts when Compiling the Pugs.AST.Internals and Pugs.Parser. maybe make unoptimized is a better choice.
- I google the error, find that autrijus said gcc4+ is not supported yet in his journal. So I downgrade the gcc4 to gcc3+. It doesn't make sense.
- I svn the newest parrot, and install it again. then have another try of pugs, but only to another failure.
- I cpan the newest ExtUtils::MakeMaker and no help.
- Now after tons of successful Compilings, it returns
Linking ... /usr/bin/ld: cannot find -lparrot collect2: ld returned 1 exit status
- I think it's something wrong in my system lib? Anybody can give me a hand?
God save me.
PS, I add the "property && but" to role Example13 { # Perl6 }, next should the subtype and Enum. :)
Updated
after I post this to the perl.perl6.complier, Greg Matheson point out that I shouldexport PARROT_PATH='/root/Desktop/svn/parrot/'the make directory, not where parrot is installed.
now pugs with parrot is running. I can test the rule now.
Thanks.