Installing Perl After A Wee Break
Saturday, 23 October 2021(‘Wee break’ as in a short period of time (Scottish), not a ‘wee break’ like in televised snooker, tennis, etc).
Context
In October 2021 I was setting up the x220 with a new environment (KDE, Arch, etc) [UPDATE July 2022: KDE, honestly??]. I wanted Perl, so this is what I did.
I also wanted to run my on-add_scheduled_work_task.pl script for adding lines
to the remote REMIND instance in taskwarrior. Additional CPAN modules needed
for this to work:
JSONDateTimeDateTime-Format-ISO8601Net::OpenSSH
Installation steps
- Install
perlbrew. Follow the instructions to install it. perlbrew install perl-5-34.0. This can take a WHILE sotail -fthe log to watch the fun. I got a test failed when I did this, but the docs (and the console message) said that I could just runmaketo get it to install properly. This works.perlbrew switch perl-5.34.0- Done. But then we want to install stuff from CPAN. Like JSON.
- Install
cpanmusing perlbrew:perlbrew install-cpanm. - Then I wanted
JSONso I didcpanm JSON. Because we installedcpanmusing perlbrew it went into the right place.
This is pretty much it.
This post is untagged.