Installation of perl on Linux machine

When i try to run the configure command i am getting below error.

Please assist.

You should almost certainly not be building PERL by hand. Your distribution must have installer packages of some sort for Perl which you should be using instead.

What is your distribution?

It would be astonishing to me if you didn't already have perl.

perl --version

If you somehow ended up without it, you'd install it with apt-get.

I already have perl on my machine, but trying to upgrade it to 5.18

You'd also upgrade it with apt-get. If the version you want isn't in your repository yet, maybe some other repository will. Compiling something as complicated as perl by hand is going to be a tremendous undertaking.

I am unable to install 5.18 for Ubuntu 12.0 as the latest version is perl 5.14.

If you absolutely need it, you will have to install gcc and make. Don't install perl into its old directories. See update perl from 5.14.2 (ubuntu 12.04 default version) to 5.18

1 Like