抓取原始碼
fetch https://rakudo.org/downloads/star/rakudo-star-2020.01.tar.gz
解壓縮
tar xfz rakudo-star-2020.01.tar.gz
編譯
cd rakudo-star-2020.01
perl Configure.pl --gen-moar --make-install --prefix ~/rakudo
最後編譯安裝成功會出現如下訊息:
Rakudo Star has been built and installed successfully.
Please make sure that the following directories are in PATH:
/home/raycherng/rakudo/bin
/home/raycherng/rakudo/share/perl6/site/bin
Rakudo has been built and installed.
將相關路徑加入 .shrc
Bash shell:
RAKU_HOME=/home/raycherng/rakudo/
export PATH=$PATH:${RAKU_HOME}/bin:${RAKU_HOME}/share/perl6/site/bin
Cshell:
setenv RAKU_HOME /home/raycherng/rakudo/
setenv PATH ${PATH}:${RAKU_HOME}/bin:${RAKU_HOME}/share/perl6/site/bin
相關參考連結:
https://raku.org/downloads
https://fluca1978.github.io/2020/01/14/RakuOnFreeBSD.html