简体   繁体   中英

How can i install perl 5.10.1 in ubuntu 18.04 LTS?

I am not able to install Perl 5.10.1 in ubuntu 18.04. I am trying to install it via perlbrew but I am getting some error.

perlbrew install perl-5.10.1

apt-get install perlbrew
perlbrew init
perlbrew install perl-5.10.1
perlbrew use perl-5.10.1

I have to downgrade the Perl version since I am in need of these for my applications backend

*Error Message:
Test Summary Report
-------------------
makefile:850: recipe for target '_test_tty' failed
make[2]: *** [_test_tty] Error 255
make[2]: Leaving directory '/root/perl5/perlbrew/build/perl-5.10.1/perl-5.10.1'
makefile:864: recipe for target '_test' failed
make[1]: *** [_test] Error 2
make[1]: Leaving directory '/root/perl5/perlbrew/build/perl-5.10.1/perl-5.10.1'
makefile:967: recipe for target 'test_harness' failed
make: *** [test_harness] Error 2
##### Brew Failed #####*

If you update the patchperl component of your perlbrew to the latest version, it should work. See this issue for more information. Try this:

$ perlbrew install-patchperl  # <-- install latest version of patchperl
$ perlbrew install perl-5.10.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM