Skip to content

Instantly share code, notes, and snippets.

@Altai-man

Altai-man/instru Secret

Created June 23, 2019 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Altai-man/0f7dbe6335bdb4ab1c8e4725c1f180dc to your computer and use it in GitHub Desktop.
Save Altai-man/0f7dbe6335bdb4ab1c8e4725c1f180dc to your computer and use it in GitHub Desktop.
Add Perl 6 repo with fresh packages
```
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 379CE192D401AB61
echo "deb https://dl.bintray.com/nxadm/rakudo-pkg-debs `lsb_release -cs` main" | sudo tee -a /etc/apt/sources.list.d/rakudo-pkg.list
```
Install rakudo-pkg and nothing else
`sudo apt-get update && sudo apt-get install rakudo-pkg`
Add our local and global Perl 6 paths into $PATH
`/opt/rakudo-pkg/bin/add-perl6-to-path`
Reload current user session to read PATH update
`source /home/$username/.profile`
Clone zef at 0.7.4 tag and install it by hands
```
git clone --branch 0.7.4 https://github.com/ugexe/zef.git
cd zef
perl6 -I. bin/zef install .
```
At this stage, we have Perl 6 2019.03.1 installed by rakudo-pkg
and zef v0.7.4 installed by us manually
Now we can install some packages:
```
zef install Readline
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment