Connecting Tech Pros Worldwide Help | Site Map

additional lib

Newbie
 
Join Date: Sep 2008
Posts: 30
#1: Oct 31 '08
Hey, I need to use a additional lib on unix sever, I download the lib files in my home directory "./lib". I tried several ways to use it, but all failed for the same prompt
Expand|Select|Wrap|Line Numbers
  1. Can't locate Digest/SHA1.pm in @INC(@INC contains: ./lib /usr/perl5/5.6.1/lib/i86pc-solaris-64int /usr/perl5/5.6.1/lib /usr/perl5/site_perl/5.6.1/i86pc-solaris-64int /usr/perl5/site_perl/5.6.1 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.6.1/i86pc-solaris-64int /usr/perl5/vendor_perl/5.6.1 /usr/perl5/vendor_perl .) at lib/WordNet/Tools.pm line 76.
  2. BEGIN failed--compilation aborted at lib/WordNet/Tools.pm line 76.
  3. Compilation failed in require at lib/WordNet/Similarity.pm line 139.
  4. BEGIN failed--compilation aborted at lib/WordNet/Similarity.pm line 139.
  5. Compilation failed in require at lib/WordNet/Similarity/PathFinder.pm line 114.
  6. BEGIN failed--compilation aborted at lib/WordNet/Similarity/PathFinder.pm line 114.
  7. Compilation failed in require at lib/WordNet/Similarity/path.pm line 87.
  8. BEGIN failed--compilation aborted at lib/WordNet/Similarity/path.pm line 87.
  9. Compilation failed in require at 1 line 2.
  10. BEGIN failed--compilation aborted at 1 line 2.
  11.  
And my code is
Expand|Select|Wrap|Line Numbers
  1. use lib "$ENV{HOME}/lib";   
  2. use WordNet::Similarity;
  3.  
I also try to export it or use perl -I from command line to call the additional lib, but none of them works.

Anyone has some suggestion?
Thanks in advance!
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,565
#2: Oct 31 '08

re: additional lib


Well, you say you downloaded it. Did you unpack it and build it as well? That is a requirement, otherwise you cannot use it. If you don't install it, how will it know its there?

Regards,

Jeff
Newbie
 
Join Date: Sep 2008
Posts: 30
#3: Nov 1 '08

re: additional lib


Quote:

Originally Posted by numberwhun

Well, you say you downloaded it. Did you unpack it and build it as well? That is a requirement, otherwise you cannot use it. If you don't install it, how will it know its there?

Regards,

Jeff


Yep, I run the program well on my computer (XP platform), and now I need to transplant it to run well on unix.
Reply