Solved

Can't locate Config.pm in @INC

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

864 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now