Journal(2005) | Blog(2006) | RandomLink | WhoAmI | LiveBookmark | HomePage

<<Previous: 随机链接  >>Next: Google Sitemap

fail to embed parrot in pugs(Resolved)

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.

  1. 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.
  2. perl Configure.pl
    make
    make install
  3. now parrot is running. but it's not in my bin directory. weird.
  4. exprot PUGS_EMBED='parrot'
    export PARROT_PATH='/usr/local/parrot-0.2.0'
    perl Makefile.PL
    make
  5. 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.
  6. Now after tons of successful Compilings, it returns
    Linking ...
    /usr/bin/ld: cannot find -lparrot
    collect2: ld returned 1 exit status
  7. 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 should
export 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.

<<Previous: 随机链接  >>Next: Google Sitemap

Options: +Del.icio.us

Related items Created on 2005-06-04 19:09:35, Last modified on 2005-06-06 11:31:05
Copyright 2004-2005 All Rights Reserved. Powered by Eplanet && Catalyst 5.62.