I remembered about perl-builder.

For reasons that I’ll hopefully talk about in some future post, I was interested into getting the latest version of Perl. Then the train of thoughts started:

OK, I can download and compile it.

Wait, there will be options to be set. I can’t remember what I settled upon.

Wait, I surely have already solved this problem. It must be some perl-... command somewhere.

Presto! I went to the command line in my VM, but nothing popped up.

Well, it must be something I’m not using since some time, at least on this computer.

Wait, it should at least be in that position…

Presto, again! There it was, already tracked and shared:

$ git remote show origin
* remote origin
  Fetch URL: ssh://
  Push  URL: ssh://

OK, it must be easy to use… let’s see how to use it…

$ ./perl-builder --usage
Can't locate Log/Log4perl/ in @INC ...

Holy Cow! Well, there must be a cpanfile right?

$ ls cpan*

Holy Friggin’ Cow! How lazy of me… Well, let’s set this up

(after some more back-and-forth)

Now it’s the right time!

$ ./perl-builder --usage
       perl-builder [--usage] [--help] [--man] [--version]

       perl-builder locator
                    [--cpanm cpanm-locator]
                    [--mirror|-m URI]
                    [--output|-o path]
                    [--path|-p path]

$ ./perl-builder 5.34.0
$ ./perl-builder -o /path/to/ 5.34.0
[2021/09/18 18:10:43 INFO ]
[2021/09/18 18:10:43 INFO ] downloading to perl-5.34.0.tar.gz
[2021/09/18 18:10:46 INFO ] getting deployable from
[2021/09/18 18:10:46 INFO ] success
[2021/09/18 18:10:47 INFO ] getting wrapperl from
[2021/09/18 18:10:47 INFO ] success
[2021/09/18 18:10:47 INFO ] getting cpanm from
[2021/09/18 18:10:47 INFO ] success
[2021/09/18 18:10:47 INFO ] saving builder to /home/poletti/sviluppo/perl/perl-builder/host/

OK, let’s run it…

$ cd /tmp/whatever
$ /path/to/
 INFO: calling tar xvC build -f /tmp/


 INFO: calling sh Configure -des -Duserelocatableinc -Dman1dir=none -Dman3dir=none -Dprefix=/tmp/whatever/perl-5.34.0
First let's make sure your kit is complete.  Checking...
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.


./perl -Ilib -I. installman --destdir= 
Manual page installation was disabled by Configure

$ ls

$ ./perl-5.34.0/bin/perl -v

This is perl 5, version 34, subversion 0 (v5.34.0) built for x86_64-linux

Copyright 1987-2021, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at, the Perl Home Page.


I hope you enjoyed the ride, stay safe!