Install Rakudo Compiler 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
You will need about 1.5GB of free RAM to compile Rakudo. Swap disk space can be used on low‑memory machines, but build time will be significantly slower (1+ hour)
The exact steps required may differ, depending on your operating system:
mkdir ~/rakudo && cd $_
curl -LJO https://rakudo.org/latest/rakudo/source
tar -xvzf rakudo-*.tar.gz
cd rakudo-*
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 test
make spectest
make install
echo "export PATH=$(pwd)/install/bin/:$(pwd)/install/share/perl6/site/bin:\$PATH" >> ~/.bashrc
source ~/.bashrc
You'll likely want to also install
zef module manager:
cd /tmp/ &&
git clone https://github.com/ugexe/zef.git &&
cd zef &&
perl6 -Ilib bin/zef install .
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)
- Download latest
Rakudo Compiler-Only source
.tar.gzarchive - Extract it into a temporary location, like
C:\Temp\rakudo\(7-zip can open.tar.gzfiles) - Press Win+R, then type
cmdand press enter, to open the command prompt. - Run these commands to install into
C:\rakudo\directory:C: mkdir C:\rakudo cd C:\Temp\rakudo perl Configure.pl --backend=moar --gen-moar --prefix=C:\rakudo gmake -
(optional) Run the test suite, which can
take over half an hour to complete:
gmake test && gmake spectest - Run:
gmake install - Add
to your
PATHenv var pathsC:\rakudo\bin\andC:\rakudo\share\perl6\site\bin - Close the command prompt and open a new one.
Type
perl6 -vto test the newly-installed Rakudo works.
You'll likely want to also install
zef module manager. In a newly-opened command prompt,
run these commands:
C:
cd C:\Temp
git clone https://github.com/ugexe/zef.git
cd zef
perl6 -Ilib bin/zef install .
Need help? Talk to us.
