Install Rakudo Star from Source

Prerequisites

You'll need Perl 5.10 or newer, git, make, gcc, and headers for libssl. To obtain these tools:

Run: sudo apt-get install build-essential git libssl-dev

Run:

sudo yum install git
sudo yum groupinstall 'Development Tools'

On Fedora, also run: sudo yum install perl-ExtUtils-Command

On CentOS 7, also run: sudo yum install perl-autodie

Download and install git and Strawberry Perl 5

Build

The exact steps required may differ, depending on your operating system:

mkdir ~/rakudo && cd $_
curl -LJO https://rakudo.org/latest/star/source
tar -xvzf rakudo-star-*.tar.gz
cd rakudo-star-*

perl Configure.pl --backend=moar --gen-moar
make

# If you wish, you can run the tests
# Depending on your machine, they could take over half an hour to run
make rakudo-test
make rakudo-spectest

make install

echo "export PATH=$(pwd)/install/bin/:$(pwd)/install/share/perl6/site/bin:\$PATH" >> ~/.bashrc
source ~/.bashrc

These instructions are for a compiler tool kit included with Strawberry Perl 5. Other compilers may have different commands (e.g. nmake instead of gmake)

  1. Download latest Rakudo Star source .tar.gz archive
  2. Extract it into a temporary location, like C:\Temp\rakudo-star\ (7-zip can open .tar.gz files)
  3. Press Win+R, then type cmd and press enter, to open the command prompt.
  4. Run these commands to install into C:\rakudo\ directory:
    C:
    mkdir C:\rakudo
    cd C:\Temp\rakudo-star
    perl Configure.pl --backend=moar --gen-moar --prefix=C:\rakudo
    gmake
    
  5. (optional) Run the test suite, which can take over half an hour to complete:
    gmake rakudo-test && gmake rakudo-spectest
  6. Run: gmake install
  7. Add to your PATH env var paths C:\rakudo\bin\ and C:\rakudo\share\perl6\site\bin
  8. Close the command prompt and open a new one. Type perl6 -v to test the newly-installed Rakudo works.