[CWB] EncodeBNC can't locate CWB
Aleksandar Trklja
aleksandar.trklja at univie.ac.at
Wed Apr 3 21:14:47 CEST 2019
Hi Andrew,
Many thanks for your suggestions!
Yes, the problem was that CWB modules were installed not even in a perl
path but on one of my local folders on the server - it's a university
server.
locate CWB.pm returned the following two paths:
HOME/BLAK/CWB-2.2.102/BLIB/LIB/CWB.PM
HOME/BLAK/CWB-2.2.102/LIB/CWB.PM
I've tried the option of moving the files to one of the folders on my
@INC listed in the error message. I selected the folders BLIB and LIB
and moved them to /USR/LIB/X86_64-LINUX-GNU/PERL/5.26/ Was this a
mistake?
I've checked whether the content of the folders was properly moved and
it was:
TRKLJA at TRKLJA:/USR/LIB/X86_64-LINUX-GNU/PERL/5.26/LIB$ LS
CWB CWB.PM
TRKLJA at TRKLJA:/USR/LIB/X86_64-LINUX-GNU/PERL/5.26/BLIB$ LS
ARCH BIN LIB MAN1 MAN3 SCRIPT
But, EncodeBNC.perl still can't locate CWB.pm in @INC. In fact, LOCATE
CWB.PM does not show that perl modules are in this new destination and
returns an empty line.
Now, it might be that I didn't move all the relevant files, that I moved
the wrong ones or that I've chosen a wrong destination. My question:
what exactly should I move? Many thanks.
If this doesn't work I'll try with a new installation.
Best
Aleks
Am 03.04.2019 16:37, schrieb Hardie, Andrew:
> 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 [1 [1]].
>
> 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_
>
> Links:
> ------
> [1] https://perldoc.perl.org/perlrun.html
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
--
_Dr Aleksandar Trklja_
_Senior Lecturer_
_Department of Translation Studies_
_University of Vienna_
Links:
------
[1] https://perldoc.perl.org/perlrun.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20190403/27c7d405/attachment.html>
More information about the CWB
mailing list