note
contra-sh
Hello,
I managed to have perl 5.6 on Ubuntu 18.04.1.
I'm doing 2 things :
<ul>
<li>Use <code>patchperl</code> (just mandatory when you want to build old perl on recent distributions)</li>
<li>Add the <code>-lm</code> to the <code>cc -o miniperl ...</code> (in the middle of the make step) - we add it through the configure script (<code>-Alibs='-lm'</code>)</li>
</ul>
<code>
wget https://www.cpan.org/src/5.0/perl-5.6.2.tar.gz
tar xvzf perl-5.6.2.tar.gz
sudo cpanm Devel::PatchPerl
patchperl perl-5.6.2
cd perl-5.6.2
./Configure -des -Dprefix=/opt/perl5.6 -Aldflags='-lm'
make
sudo make install
</code>
Hope it will help you (if you don't want to use perlbrew).<br/><br/><br/>
Rgds,<br/><br/>
Thibault
11114503
11114503