LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-05-2002, 02:56 AM   #1
john lee
Member
 
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 MD5.pm 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.

John
 
Old 06-05-2002, 10:12 AM   #2
kill-hup
Member
 
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.
 
  


Reply



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 10:16 AM
Can't locate module ppp_synctty ? meshari_o Linux - Networking 0 07-30-2004 04:41 AM
Can't locate module cdrom cparx Linux - Newbie 4 04-20-2004 04:56 PM
modprobe: Can't locate module... Oxagast Linux - General 8 11-12-2003 01:36 PM
modprobe?! can't locate Module?! DjRedMar Linux - Software 1 10-19-2003 01:55 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:25 AM.

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