Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't locate MD5.pm in @INC

Status
Not open for further replies.

beye1850

IS-IT--Management
Jun 3, 2002
28
US
The error i am recieveing in my apache logs is as follows:

Can't locate MD5.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/
5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at /var/admin.cgi line 28.


I have MD5 installed and it is located at:
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Digest/MD5.pm

However that path is not located in the @INC that the log lists. Where is the @INC file and how can i edit it to include that path.

Thanks for any help
 
To add that directory to the @INC array, use the "use lib" pragma before your "use" pragma.

use lib "/usr/lib/perl5/site_perl/5.6.1/i386-linux/Digest/";
use MD5;



You can also move/copy the module to a spot in the current set of trees.
 
Or just use "use Digest::MD5;" which would be the correct use line... //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top