YGP has asked for the wisdom of the Perl Monks concerning the following question:

I am installing perl module Authen::PAM , I am getting this error.
$ perl Makefile.PL PREFIX=/Perl_Modules.

Checking if your kit is complete....

Looks good.

Error in configuring the Authen::PAM module.
Os: Sun, Perl 5.8.4

Replies are listed 'Best First'.
Re: Authen:: PAM
by Khen1950fx (Canon) on Mar 06, 2008 at 07:30 UTC
    Three things that you could try:

    You might have to set the CC environmental variable; for instance, if want to use gcc, then try:

    CC=gcc perl Makefile.PL PREFIX=/Perl_Modules

    Or try CC=gcc ./configure --prefix=/Perl_Modules

    Or download the latest development release and see if that solves the problem.


      For the first I am getting the same error.

      Second ": bad interpreter: No such file or directory"

      Third: Same result as first.

      BTW I have already set my cc before doing perl makefil.pl "export CC=/opt/SUNWspro/bin/cc"
        It is because of config.pm file, that file is missing in lib folder but it is availble in lib/Net folder, Now I am getting new error
        bal symbol "%Config" requires explicit package name at /usr/perl5/5.8.4/lib/ExtUtils/MM.pm line 55.

        Compilation failed in requireat /usr/perl5/5.8.4/lib/ExtUtils/MakeMaker.pm line 37..

        Compilation failed in require at Makefile.PL line 1.

        BEGIN failed--compilation aborted at Makefile.PL line 1.
Re: Authen:: PAM
by Anonymous Monk on Mar 06, 2008 at 05:38 UTC
    And?
    system("./configure") == 0 or die "Error in configuring the Authen::PAM module.\n";
      Yes, thats where its failing....