tadzik / rakudobrew

Perl 6 installation manager
MIT License
185 stars 42 forks source link

build-panda fails - no such file or directory #62

Closed kalkin closed 9 years ago

kalkin commented 9 years ago

I followed this guide http://rakudo.org/how-to-get-rakudo/ to install rakudo with rakudobrew. The installation of panda on a clean Fedora 21 fails with the following message:

rakudobrew build-panda
No need to rebootstrap, running normal bootstrap
==> Bootstrapping Panda
==> Installing panda from a local directory '/home/user/.rakudobrew/moar-nom/panda'
==> panda depends on File::Find, Shell::Command, JSON::Fast
==> Shell::Command depends on File::Find
==> Fetching File::Find
==> Building File::Find
==> Testing File::Find
no such file or directory
  in method throw at /home/user/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:1
  in sub run-and-gather-output at /home/user/.rakudobrew/moar-nom/panda/lib/Panda/Common.pm:86
  in block  at /home/user/.rakudobrew/moar-nom/panda/lib/Panda/Tester.pm:24
  in sub indir at /home/user/.rakudobrew/moar-nom/panda/lib/Panda/Common.pm:20
  in method test at /home/user/.rakudobrew/moar-nom/panda/lib/Panda/Tester.pm:5
  in method install at /home/user/.rakudobrew/moar-nom/panda/lib/Panda.pm:141
  in block  at /home/user/.rakudobrew/moar-nom/panda/lib/Panda.pm:214
  in method resolve at /home/user/.rakudobrew/moar-nom/panda/lib/Panda.pm:208
  in sub MAIN at bin/panda:18
  in block <unit> at bin/panda:145

==> Please make sure that /home/user/.rakudobrew/moar-nom/install/share/perl6/site/bin is in your PATH
Updating shims
Done, built panda for moar-nom
Updating shims

Adding /home/user/.rakudobrew/moar-nom/install/share/perl6/site/bin to the $PATH does not fix this issue.

Also it says Done, built panda for moar-nom but executing ~/.rakudobrew/moar-nom/panda/bin/panda throws another error:

===SORRY!===
Could not find Shell::Command in any of:
  file#/home/user/.perl6/2015.09-420-g4b1df7b/lib
  inst#/home/user/.perl6/2015.09-420-g4b1df7b
  file#/home/user/.rakudobrew/moar-nom/install/share/perl6/lib
  file#/home/user/.rakudobrew/moar-nom/install/share/perl6/vendor/lib
  file#/home/user/.rakudobrew/moar-nom/install/share/perl6/site/lib
  inst#/home/user/.rakudobrew/moar-nom/install/share/perl6
  inst#/home/user/.rakudobrew/moar-nom/install/share/perl6/vendor
  inst#/home/user/.rakudobrew/moar-nom/install/share/perl6/site

This issue could be related to #38

kalkin commented 9 years ago

Found a solution. You have to install Test::Harness. It is a perl 5 package(?) which kind of is counter intuitive when installing perl6, but I see where it is coming from :). It would be great if the tutorial http://rakudo.org/how-to-get-rakudo/ would be extended to have for RPM based distributions:

yum install -y git perl-Test-Harness