Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-18-2003, 06:14 PM   #1
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Lightbulb SOLUTION: not found in @INC - RH8, 9 and Mandy

Hiya all! Ever get this kinda error message in Apache when trying to run a perl script that uses
Can't locate in @INC (@INC contains: ...... )
Well, in case you're having difficulty with your server like I did, just do the following (worked for me like a charm)! Change your perl.conf file (on RH8 or 9 it's in /etc/httpd/conf.d/) to look like something this:
LoadModule perl_module modules/

<FilesMatch "\.(pl|perl)$">
    SetHandler perl-script
    #PerlHandler ModPerl::Registry::handler
    PerlResponseHandler ModPerl::Registry
    PerlOptions +ParseHeaders
Note how I commented out PerlHandler and replaced it with a PerlResponseHandler directive. That straightened things out. Not sure why, hitting the "books" now...
Old 07-22-2003, 04:14 PM   #2
LQ Newbie
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
RedHat 9.0 CGI Solution

Can't locate in @INC

This is the message I would get after doing an initial installation of RedHat 9.0, with Perl installed. It appeared that everything was installed, but I could not run any scripts!! Finally, I found the answer with some help on this board.

Here it is:
Note: You need to be connected to the internet, so you can access CPAN.

Type these commands for the Terminal (Command Prompt):

perl -MCPAN -e shell


i /

Then you should see some listing like the line below.

This is the line that really does the work and sometimes, it takes a few tries, so try it a couple times until it works.!

install L/LD/LDS/

Now you should have the file installed that is required, as well as all the others.

Start running some CGI-Perl Scripts!
Old 07-22-2003, 05:47 PM   #3
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Original Poster
Rep: Reputation: 31
UPDATE: Note that RedHat comes with mod_perl for perl scripts. This is NOT the same as running mod_php for PHP scripts! Use mod_perl only if you have to! There are some really serious issues with mod_perl.

If you don't absolutely need mod_perl, use perl in CGI mode.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot hangs with the 'GRUB' message - no solution found alxp Linux - Newbie 7 09-20-2004 01:23 AM
Kernel Panic No Init Found Solution danny_beta_read Linux - Software 0 04-07-2004 10:04 AM
Solution found: Xnest with German Keyboard / Umlaute anura Linux - Software 0 03-24-2004 03:33 AM
Mouse troubles - found the cause, what's the solution? King V Linux - General 9 03-07-2003 05:15 PM
Mouse pointer shifted - found the solution svb4u Linux - Hardware 0 12-11-2002 12:22 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration