Perl: Can't locate ExtUtils/MakeMaker.pm in @INC (2076 Views)
Reply
Honored Contributor
TwoProc
Posts: 2,202
Registered: ‎01-11-1999
Message 1 of 5 (2,076 Views)
Accepted Solution

Perl: Can't locate ExtUtils/MakeMaker.pm in @INC

OK, I'm installing a new package on an HPUX11.i box, and I get the following error:

# perl Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC

Anyone can tell me how to begin addressing this?
"[That boy] is about as sharp as a sack of wet mice" - Foghorn Leghorn
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 2 of 5 (2,076 Views)

Re: Perl: Can't locate ExtUtils/MakeMaker.pm in @INC

Hi John:

# perl -V

...should show your @INC contents and 'ExtUtils/MakeMaker.pm' ought to be in one of the paths! I'd do:

# find /usr -name MakeMaker.pm

...for example, using the root level directory to make sure you have the module (you should).

Regards!

...JRF...
Honored Contributor
TwoProc
Posts: 2,202
Registered: ‎01-11-1999
Message 3 of 5 (2,076 Views)

Re: Perl: Can't locate ExtUtils/MakeMaker.pm in @INC

Hey James,

Thanks for the prompt reply.

Ok, I've actually got the MakeMaker library in /opt/perl/lib/5.8.3... HOWEVER, there is also /opt/perl/lib/5.6.1 (which doesn't have it). Whenever I run perl, it always runs the 5.6.1 version...

And, when I run "perl -V" I get :
$ perl -V
Can't locate Config.pm in @INC (@INC contains: /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl .).
BEGIN failed--compilation aborted.

Ugh..

BUT, /opt/perl/bin/perl-dynamic -V returns:
... all of the good stuff we'd all expect about version 5.8.3... whoopee!


So, How do I make perl start using the 5.8.3 version and not the 5.6.1 version when both are loaded in the server? Because, when I run /opt/perl/bin/perl-dynamic Makefile.pm - it actually returns me the makefile that I needed.

Is this just simply a case of fixing the symbolic links for "/usr/bin/perl" that eventually land in /opt/perl/bin/ to run the dynamic version (which is 5.8.x) instead of the static version (which is 5.6.x)???
"[That boy] is about as sharp as a sack of wet mice" - Foghorn Leghorn
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 4 of 5 (2,076 Views)

Re: Perl: Can't locate ExtUtils/MakeMaker.pm in @INC

Hi (again) John:

> Is this just simply a case of fixing the symbolic links for "/usr/bin/perl" that eventually land in /opt/perl/bin/ to run the dynamic version (which is 5.8.x) instead of the static version (which is 5.6.x)???

Yes, that's what I'd do. Afterall, 5.8 has so many more nice things than 5.6.

It is recommended that '/usr/bin/perl' and '/usr/local/bin/perl' be symbolic links to the actual perl binary.

Regards!

...JRF...
Honored Contributor
TwoProc
Posts: 2,202
Registered: ‎01-11-1999
Message 5 of 5 (2,076 Views)

Re: Perl: Can't locate ExtUtils/MakeMaker.pm in @INC

Thanks James,
I appreciate the help.

I totally screwed up on that last point assignment, I meant to put 10 pts, and now... it's too late. Sorry...

If I ever actually run into you at a conference, etc. - I owe you two beers in exchange for those missing two points.
"[That boy] is about as sharp as a sack of wet mice" - Foghorn Leghorn
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.