Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • chromatic wrote:

    Now you have a perl6 binary that can run Perl 6 programs:

    $ ./perl6 languages/perl6/t/01-sanity/01-tap.t

    Caveats: you need to build a shared libparrot with dynamic loading (the default Parrot build, I believe). Also, for now, you can only run the Perl 6 binary from the root directory of a Parrot checkout.

    As written, I think the code is incorrect and is contradicted by the second sentence in the following paragraph. I was only able to execute Perl6 programs with:

    $ ./languages/perl6/perl6 languages/perl6/t/01-sanity/01-tap.t

    • Out of curiosity, what platform are you on? I'm still working with the perl6-internals team to figure out how to get this to properly build on my Intel MacBook. We're getting closer, but there are still failures.

      For those following along at home, use the following bash script I hacked together:

      #!/bin/bash

      perl Configure.pl --test \
        && make \
        && cd languages/perl6/

      make \
        && cd ../..

      make pbc_to_c \
        && ./pbc_to_c languages/perl6/perl6.pbc \
       

      • For the average user, perl Configure.pl will suffice, i.e., you can omit the --test.

        The --test option is something which those working on the configuration and build systems should run, but is not necessary for language developers or those (like myself!) who will be using chromatic's program to run Perl6 program for the first time.

        kid51

      • I'm having issues building r24319 on my Intel MacBook Pro following these instructions. Specifically, when I try the make pbc_to_exe step I get:

        /usr/bin/ld: Undefined symbols:
        _PackFile_fixup_subs
        _PackFile_new
        _PackFile_unpack
        _Parrot_destroy
        _Parrot_exit
        _Parrot_loadbc
        _Parrot_new
        _Parrot_runcode
        _do_sub_pragmas
        collect2: ld returned 1 exit status

        I'll spare this thread the details (gcc-4.0, lots of Fink packages installed) but if there's a simple solution it'd be nice to know where to look.