wiki:Dev/Perl/Perl6

Version 5 (modified by mitty, 14 years ago) (diff)

--

Perl version 6

make

  1. wget https://github.com/downloads/rakudo/star/rakudo-star-2010.11.tar.gz
  2. tar xzf rakudo-star-2010.11.tar.gz
  3. cd rakudo-star-2010.11/rakudo/
  4. ~/rakudo-star-2010.11/rakudo$ perl ./Configure.pl --gen-parrot
    • gitが入っていないと「Can't exec "git": No such file or directory at build/gen_parrot.pl line 106.」といわれるので、aptitude等で入れておく
  5. ~/rakudo-star-2010.11/rakudo$ make all
  6. ~/rakudo-star-2010.11/rakudo$ ./perl6 -v
    This is Rakudo Perl 6, version 2010.11 built on parrot 2.10.0 RELEASE_2_10_1
    
    Copyright 2008-2010, The Perl Foundation
    
  • 現状、/usr/local等にmake installすることは出来ない模様

make on Windows with Cygwin ==

  • spec
    • This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int
    • gcc version 4.3.4 20090804 (release) 1 (GCC)
  • perl ./Configure.pl --gen-parrot
    (snip)
    
    ./parrot.exe -o pbc_to_exe.pbc tools/dev/pbc_to_exe.pir
    ./parrot.exe pbc_to_exe.pbc pbc_to_exe.pbc
    gcc-4 -o pbc_to_exe.o -I/cygdrive/d/tmp/perl6/rakudo-star-2010.11/parrot-2.10.1/include -U__STRICT_ANSI__ -g3  -pipe -fstack-protector -I/usr/local/include -DHASATTRIBUTE_CONST  -DHASATTRIBUTE_DEPRECATED  -DHASATTRIBUTE_MALLOC  -DHASATTRIBUTE_NONNULL  -DHASATTRIBUTE_NORETURN  -DHASATTRIBUTE_PURE  -DHASATTRIBUTE_UNUSED  -DHASATTRIBUTE_WARN_UNUSED_RESULT  -DHASATTRIBUTE_HOT  -DHASATTRIBUTE_COLD  -DDISABLE_GC_DEBUG=1 -DNDEBUG -DHAS_GETTEXT -O3 -c pbc_to_exe.c
          2 [main] parrot 6552 D:\tmp\perl6\rakudo-star-2010.11\parrot-2.10.1\parrot.exe: *** fatal error - unable to remap \\?\D:\tmp\perl6\rakudo-star-2010.11\parrot-2.10.1\runtime\parrot\dynext\os.dll to same address as parent: 0x240000 != 0x340000
          2 [main] parrot 3228 fork: child 6552 - died waiting for dll loading, errno 11
    Can't spawn child process
    current instr.: 'compile_file' pc 1089 (tools/dev/pbc_to_exe.pir:625)
    called from Sub 'main' pc 158 (tools/dev/pbc_to_exe.pir:131)
    make: *** [pbc_to_exe.exe] Error 1
    Command failed (status 512): make install-dev
    ===SORRY!===
    Unable to locate parrot_config