Solved

Can't locate Config.pm in @INC

Posted on 1997-05-19
1
2,749 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…

808 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