Solved

Can't locate Config.pm in @INC

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
OTRS Installation 1 276
Most Common two letters at the start of a word. 1 77
crawling gofundme 4 103
PERL variable conundrum 9 83
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…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

12 Experts available now in Live!

Get 1:1 Help Now