FedoraにPugsをインストール - hide-k.net#blog を参考に。
ghc は yum で 6.4.2 をインストール。
hs-plugins は http://www.haskell.org/fedora/ の RPM から、と思ったが FC5 用の RPM がまだないようだ。hs-plugins-0.9.10-4.20050922.src.rpm から hs-plugins-0.9.10.20050922.tar.gz を取り出して、野良ビルド。
$ tar zxvf hs-plugins-0.9.10.20050922.tar.gz $ cd hs-plugins-0.9.10.20050922 $ runhaskell Setup.hs configure --prefix=/usr/local $ runhaskell Setup.hs build # runhaskell Setup.hs install
parrotをインストール。
$ tar zxvf parrot-0.4.5.tar.gz
$ cd parrot-0.4.5
$ perl Configure.pl
$ make
$ make test
(略)
t/doc/pod............................# finding files with pod, this may take a minute.
t/doc/pod............................ok 163/1179
# Failed test (t/doc/pod.t at line 62)
# /home/fujiwara/src/parrot-0.4.5/src/ops/experimental.ops (229): '=item' outside of any '=over'
t/doc/pod............................ok 1113/1179
# Failed test (t/doc/pod.t at line 62)
# /home/fujiwara/src/parrot-0.4.5/docs/ops/experimental.pod (105): '=item' outside of any '=over'
t/doc/pod............................NOK 1162# Looks like you failed 2 tests of 1179.
t/doc/pod............................dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 329, 1162
Failed 2/1179 tests, 99.83% okay
t/distro/manifest....................# this may take a while...
t/distro/manifest....................ok
t/codingstd/cppcomments..............ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/doc/pod.t 2 512 1179 2 0.17% 329 1162
8 tests and 357 subtests skipped.
Failed 1/240 test scripts, 99.58% okay. 2/5985 subtests failed, 99.97% okay.make test で 2つほど失敗したが、そのまま make install で入れた。
pugs をインストール。LANG=C でないと "<built-in>:0:1: lexical error" みたいなエラーが起きる。
$ svn co http://svn.openfoundry.org/pugs/ pugs/ $ export LANG=C $ export PUGS_EMBED="perl5 parrot" $ perl Makefile.PL $ make $ make test # make install
で、ようやく入った。
$ pugs -v
______
/\ __ \
\ \ \/\ \ __ __ ______ ______ (P)erl6
\ \ __//\ \/\ \/\ __ \/\ ___\ (U)ser's
\ \ \/ \ \ \_\ \ \ \/\ \ \___ \ (G)olfing
\ \__\ \ \____/\ \____ \/\_____\ (S)ystem
\/__/ \/___/ \/___/\ \/____/
/\____/ Version: 6.2.12 (r10915)
\/___/ Copyright 2005-2006, The Pugs Contributors
--------------------------------------------------------------------
Web: http://pugscode.org/ Email: perl6-compiler@perl.org