Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-05-2002, 03:56 AM   #1
john lee
Registered: Jun 2001
Location: Sydney, Australia
Posts: 42

Rep: Reputation: 15
Angry can't locate module in @INC

Hi all,

I am trying to run this perl script which has a "require MD5" line in the script. However, when it ran from the browser, I got a "500 Internal Server Error" and when I looked into the error log in Apache, I saw the line - "Can't locate in @INC (@INC contains.....).

Q1. Do you know how do I find out what @INC is pointing and how could I modify the path in @INC?
Q2. Can I modify the directory when MD5 is compiled so that I could point to @INC?

Thanks in advance.

Old 06-05-2002, 11:12 AM   #2
Registered: Aug 2000
Location: NY - USA
Distribution: Slackware
Posts: 109

Rep: Reputation: 15
You need to make sure the MD5 perl module is installed, for starters. You can check the contents of @INC via:

> perl -e 'print join(":",@INC)'

for a nice, PATH-ish look Basically, @INC includes the list of directories perl will search to find your module. If you are sure the module is installed, but perhaps not in this path, just add the new directory to the @INC array.


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
Can't Locate Module wlan0 mattp Linux - Laptop and Netbook 34 02-28-2005 11:16 AM
Can't locate module ppp_synctty ? meshari_o Linux - Networking 0 07-30-2004 05:41 AM
Can't locate module cdrom cparx Linux - Newbie 4 04-20-2004 05:56 PM
modprobe: Can't locate module... Oxagast Linux - General 8 11-12-2003 02:36 PM
modprobe?! can't locate Module?! DjRedMar Linux - Software 1 10-19-2003 02:55 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:34 AM.

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