Solved

Can't locate Config.pm in @INC

Posted on 1997-05-19
1
2,750 Views
Last Modified: 2006-11-17
I am trying to install some perl scripts "mkstats" "GD.pm" and other's on my sun running solaris 2.5.  I have perl5.003 on my system and it works fine with most programs, however whenever I try to install somthing "perl Makefile.PL" I get the following error...Cut/Paste..# perl Makefile.PL
Can't locate Config.pm in @INC at /usr/local/lib/perl5/ExtUtils/MakeMaker.pm lin
e 13.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/ExtUtils/MakeMaker.pm
line 13.
BEGIN failed--compilation aborted at Makefile.PL line 1.
#                                                          
...Cut/Paste...
I originally had built perl5.001 on my system, I had a hard drive crash, was unable to build perl5.003 in a timely manner, a friend built it on his "almost" identicle sun and put it on my server. I tell you this because I feel it may have something to do with this problem.  
Also, I tried building perl5.003 yesterday, I do install ok, then it crashes when I do make...?
As you see their could be a possiblity for many points to be  earned here.  Thanks,
0
Comment
Question by:online
1 Comment
 

Accepted Solution

by:
chewie124 earned 100 total points
ID: 1204058
From the description of your problem, it sounds like the perl script that you're running is not finding files that it requires.  The @INC array is an string array of directories that the perl compiler searches to find files to include in the script.

For example, say you have a script called "sample.pl" in the directory "/user/home" which used subroutines in a file called "lib.pl" in the directory "/user/libs/".

Near the top of the sample.pl file you would type:

push (@INC, "/user/libs");
require "lib.pl";

the first line adds the directory "/user/libs" to the @INC array, so the compiler knows to look in that directory for files called with the "require" command.  The second line just says, make the file "lib.pl" accessible to this script.

Upon looking at the errors you related, however, it looks like you have an actual file in your @INC array, when there should only be directories.  If there's somewhere where you input directories or filenames to configure the installation, you might want to doublecheck those spots.

chewie124
http://www.dtai.com/~chewie
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question