Back to: SuomenKielipankki:Helpdesk

Helpdesk Item: CannotLocateLemmiePm

Problem Description

Yritin tänään käyttää omaa hakuskriptia nimeltään "yhdensananhaku.pl" (jota käytin siis aikaisemmin koko ajan ja viimeksi kesäkuun aikana), joka alkaa siis tyypillisesti:

#!/usr/bin/perl -w
use Lemmie;

Siihen kone vastasi:

Can't locate Lemmie.pm in @INC (@INC contains: 
/usr/lib/perl5/5.8.0/i386-linux-thread-multi 
/usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 
/usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 
/usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
.) at yhdensananhaku.pl line 2.
BEGIN failed--compilation aborted at yhdensananhaku.pl line 2.

The Answer(s)

The analysis. This problem is cause by the adoption of Perl MySQL-client, standard version 5.0.22, and relocation of the Lemmie libraries in the corpus2.csc.fi machine. The earlier location of Lemmie libraries was under /usr/lib/perl5/site_perl/5.8.0. Now the library has been moved to /mnt/corpus/appl/ling/lemmieshell/lib. Moreover, one part of the library was missing.

The user's actions. The user is adviced to insert the following line in the beginning of the Perl script.

  use lib "/mnt/corpus/appl/ling/lemmieshell/lib/";
This tells Perl to search /mnt/corpus/appl/ling/lemmieshell/lib for Lemmie.pm.

The user's feedback. .... Please tell how this fix worked.

-- AnssiYliJyra - 21 Aug 2006

HelpdeskForm
HelpdeskProblemName Can't locate Lemmie.pm
HelpdeskProblemAbstract A Perl script cannot locate Lemmie.pm in @INC.
HelpdeskUrgency FullyResponded
HelpdeskNumberOfUsers 1
HelpdeskDateIssued 2006-08-21
Topic revision: r2 - 2006-09-08 - ManneMiettinen
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback