Installing Raku on OpenBSD

How hard could it be to install our favourite language on OpenBSD?
Itโ€™s just a matter of seconds, because raku and rakudo are available as packages!
Therefore, it simply needs to be issued a pkg_add command: <br/<
% doas pkg_add rakudo
quirks-4.53 signed on 2021-11-05T21:25:13Z
rakudo-2021.02.1:libatomic_ops-7.6.10: ok
rakudo-2021.02.1:libuv-1.40.0: ok
rakudo-2021.02.1:moarvm-2021.02: ok
rakudo-2021.02.1:nqp-2021.02: ok
rakudo-2021.02.1: ok

% which raku
/usr/local/bin/raku


The fact that raku is available as a package surpiresed me, since it is not available on FreeBSD!
Unluckily, there is no package for zef, so in order to install zef you have to do some manual steps:

% git clone https://github.com/ugexe/zef.git
% cd zef

% raku -I. bin/zef install .
===> Testing: zef:ver<0.13.4>:auth<github:ugexe>:api<0>
===> Testing [OK] for zef:ver<0.13.4>:auth<github:ugexe>:api<0>
===> Installing: zef:ver<0.13.4>:auth<github:ugexe>:api<0>

1 bin/ script [zef] installed to:
/home/luca/.raku/bin


Installing zef can require a lot of timeโ€ฆ
Anyway, after zef is optionally installed, it is time to fire up raku and start doing stuff:

% raku
Welcome to ๐‘๐š๐ค๐ฎ๐๐จโ„ข v2021.02.1.
Implementing the ๐‘๐š๐ค๐ฎโ„ข programming language v6.d.
Built on MoarVM version 2021.02.

To exit type 'exit' or '^D'
> $*VM.say 
moar (2021.02)



but thatโ€™s another story!

The article Installing Raku on OpenBSD has been posted by Luca Ferrari on November 9, 2021