Solved

Can't locate Config.pm in @INC

Posted on 1997-05-19
1
2,753 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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…
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…
Six Sigma Control Plans

691 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