in reply to Re: Re: Re: Can't Find pod2man When Installing Modules
in thread Can't Find pod2man When Installing Modules

I can't seem to be able to install any modules. I just tried installing Podlators-1.10 and this came up:

venus:/public_html/perl/podlators-1.10 > perl Makefile.PL
Checking if your kit is complete...
Looks good

Warning: I could not locate your pod2man program. Please make sure, your pod2man program is in your PATH before you execute 'make'

Writing Makefile for Pod venus:/public_html/perl/podlators-1.10 >

I thought by installing the podlators-1.10 it would fix it so pod2man would be available?

Jeff

  • Comment on Re: Re: Re: Re: Can't Find pod2man When Installing Modules

Replies are listed 'Best First'.
Irony in pod2man
by pjf (Curate) on Oct 03, 2001 at 05:21 UTC
    Oh goodness, that is quite ironic, isn't it?

    The warning is from ExtUtils::MakeMaker. Given that it's just a warning, I would ignore it and try to continue with the install if possible. If a "make" fails, then you'll probably need to resort to manually installing the modules and/or programs you'll need. (Post if this is the case and I'll see what I can do to help.)

    Note that if you don't have root access on your box, then all your installs will complain unless you install into a local directory which you can write to. More information on that can be found in this node.

    Cheers,
    Paul

      Thanks for your responses. I tried installing it with the info in the link you posted and I'm still getting that pod2man error:

      venus:/public_html/perl/Crypt-DES-2.03 > perl Makefile.PL PREFIX=/u/USERID/perl

      Warning: I could not locate your pod2man program. Please make sure, your pod2man program is in your PATH before you execute 'make'

      Writing Makefile for Crypt::DES

      venus:/public_html/perl/Crypt-DES-2.03 > perl Makefile.PL PREFIX=/home/MYUSERID/public_html/perl

      Warning: I could not locate your pod2man program. Please make sure, your pod2man program is in your PATH before you execute 'make'

      Writing Makefile for Crypt::DES Any ideas?

        Well, I was going to write, "They're just warnings. Go on and do a make anyway..." until I did some tests of my own, and discovered that ExtUtils::MakeMaker really really does want pod2man installed. Darn.

        The PREFIX affects where the modules will be installed. Obviously this needs to be a directory that actually exists. I trust you'll replace your example paths in your node above with real paths on your system.

        Since pod2man should be a standard part of your perl distribution, it may indicate that other essential pieces are also missing. Reinstalling perl might be a good idea.In fact, I'd go so far as to say this is probably your best option overall.

        If you really do need to install pod2man from scratch, you can do the following:

        • Get the Podlators tarball, and unzip it somewhere.
        • Make sure that the "podlators-1.10/scripts" directory from the tarball is on your path. If you're using bash and you're in the podlators directory, you can do a export PATH="$PATH:$PWD/scripts" to add it.
        • make and install as per normal. (Eg, "perl Makefile.PL", "make", "make install")

        The installation will use the pod2man script inside the podlators distribution. You don't want to make a habit of this, but it should work.

        Once the code has installed, make sure that your path is set to include the location of the new pod2man script.

        When generating the makefile for the podlators distribution, it will complain about not finding pod2man, even though it's in your path. This can be ignored, because the generated makefile will find the pod2man in the scripts directory.

        Once again, do make sure that you read the Podlators README file on the risks involved of using a version which did not come with your distributon of perl.

        Cheers,
        Paul