Ubuntu 10.10 comes with Perl 5.10.1 pre-installed, but strangely enough perldoc isn't part of the package.

$ perldoc
You need to install the perl-doc package to use this program.

How can I make this feature available?

3 Answers 3


I feel a bit stupid saying it, but did you try installing perl-doc?

# apt-get install perl-doc
  • 2
    You will need to execute that command as root. In Ubuntu this is usually done using sudo before the command.
    – Steven D
    Oct 12, 2010 at 18:29
  • 4
    @Steven I never include sudo, it's not technically part of the command, but yes, like all package installs it needs to be run as root Oct 12, 2010 at 18:31
  • 1
    Users normally use the software center or a package manager gui for installing packages
    – txwikinger
    Oct 12, 2010 at 18:46
  • 5
    @txw Well, this explains why I normally don't answer Ubuntu questions :). If you're already on the command-line and have the package name right in front of you I would expect most people to use apt-get or aptitude, but maybe that's not the case Oct 12, 2010 at 18:53
  • 2
    for n00bs like me, its not obvious whether this needs to be a cpan install or an apt-get or download a tar or a .dmg from somewhere. Apr 15, 2015 at 10:58

You need to install the perl-doc package. It tells you right there in the error message.

  • 1
    You can use the software center to install any software package
    – txwikinger
    Oct 12, 2010 at 18:45
  • using perl gets normal people into learned helplessness with all that cpan, cpanM, Mcpan and modules that have different names than printed in the error. After a while I started to try one thing and then throw my hands up and google.
    – Chris
    Jan 12 at 16:51

You should simply install the perl-doc package?

Use your favorite package manager, for example synaptic or sudo aptitude install perl-doc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.