[CWB] EncodeBNC can't locate CWB
Hardie, Andrew
a.hardie at lancaster.ac.uk
Wed Apr 3 16:37:45 CEST 2019
Hi Aleks,
cqp -v will tell you where the binaries are for the CWB core.
Perl modules are different matter, the easiest way to find out is to run
locate CWB.pm
and compare the address of the folder where it lives to the list of folders I’ve highlighted in yellow below : the @INC list is the list of where Perl looks for .pm files.
One common reason for this to happen is Perl versioning. The CWB modules are often installed into a folder whose path contains a version number, e.g. /usr/local/share/perl/5.20.2/ – if a new version of perl is then installed, it will no longer look in that folder, but instead at, for instance, /usr/local/share/perl/5.26.1/ (one of the folders on your @INC)
If this has actually happened, there are two solutions. (1) rebuild and reinstall CWB-Perl. (2) OR, just manually move everything in the old-version folder to the equivalent new-version folder. I do the latter. That’s probably bad practice, but I don’t use Perl for anything else, so it doesn’t really matter.
If it’s not a version issue, then it’s an installation issue – CWB-Perl has been installed to some folder somewhere, but not one of the places that perl looks for modules. The solution then is either (a) to reinstall while making sure that you’ve configured it to go into one of the places Perl looks (See the README/INSTALL file for how) or (b) to change Perl’s @INC to add in the folder you want it to look in by using -I /path/to/folder on the command line<https://perldoc.perl.org/perlrun.html>.
best
Andrew.
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Aleksandar Trklja
Sent: 03 April 2019 13:43
To: cwb at sslmit.unibo.it
Subject: [CWB] EncodeBNC can't locate CWB
Dear all,
I've been trying to encode the BNC with "EncodeBNC.perl" on a remote server and although CWB has been installed and works properly the following error message returns when I run 'perl EncodeBNC.perl -f /home/tmo/ /home/tmp'
Can't locate CWB.pm in @INC (you may need to install the CWB module) (@INC contains: lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at lib/BNC/Meta.pm line 62.
BEGIN failed--compilation aborted at lib/BNC/Meta.pm line 62.
Compilation failed in require at lib/BNC/Doc.pm line 6.
BEGIN failed--compilation aborted at lib/BNC/Doc.pm line 6.
Compilation failed in require at EncodeBNC.perl line 14.
BEGIN failed--compilation aborted at EncodeBNC.perl line 14
EncodeBNC can't locate CWB - that much I can understand (or I might be wrong) but the rest is a mystery for me.
I can also confirm that the CWB/Perl interface and xsltproc have been installed.
Btw, how can you check where exactly has CWB been installed?
Thanks.
Best wishes
Aleks
--
Dr Aleksandar Trklja
Senior Lecturer
Department of Translation Studies
University of Vienna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20190403/1a9202e8/attachment-0001.html>
More information about the CWB
mailing list