<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Hi Andrew,</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Many thanks for your suggestions!</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">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.</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">locate CWB.pm returned the following two paths:<br /><strong>home/blak/CWB-2.2.102/blib/lib/CWB.pm</strong><br /><strong>home/blak/CWB-2.2.102/lib/CWB.pm</strong><br /><br /><br />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 <strong>blib</strong> and <strong>lib</strong> and moved them to <strong>/usr/lib/x86_64-linux-gnu/perl/5.26/</strong> Was this a mistake?<br /><br />I've checked whether the content of the folders was properly moved and it was:<br /><strong>trklja@trklja:/usr/lib/x86_64-linux-gnu/perl/5.26/lib$ ls</strong><br /><strong>CWB CWB.pm</strong><br /><br /><strong>trklja@trklja:/usr/lib/x86_64-linux-gnu/perl/5.26/blib$ ls</strong><br /><strong>arch bin lib man1 man3 script</strong><br /><br />But, EncodeBNC.perl still can't locate CWB.pm in @INC. In fact, <strong>locate CWB.pm </strong> does not show that perl modules are in this new destination and returns an empty line.<br /><br />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.</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">If this doesn't work I'll try with a new installation.<br /><br />Best<br />Aleks</div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">Am 03.04.2019 16:37, schrieb Hardie, Andrew:
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">Hi Aleks, <br /> <br /> CQP -V will tell you where the binaries are for the CWB core. <br /> <br /> Perl modules are different matter, the easiest way to find out is to<br /> run <br /> <br /> LOCATE CWB.PM <br /> <br /> and compare the address of the folder where it lives to the list of<br /> folders I’ve highlighted in yellow below : the @INC list is the list<br /> of where Perl looks for .pm files. <br /> <br /> One common reason for this to happen is Perl versioning. The CWB<br /> modules are often installed into a folder whose path contains a<br /> version number, e.g. /USR/LOCAL/SHARE/PERL/5.20.2/ – if a new<br /> version of perl is then installed, it will no longer look in that<br /> folder, but instead at, for instance, /USR/LOCAL/SHARE/PERL/5.26.1/<br /> (one of the folders on your @INC) <br /> <br /> If this has actually happened, there are two solutions. (1) rebuild<br /> and reinstall CWB-Perl. (2) OR, just manually move everything in the<br /> old-version folder to the equivalent new-version folder. I do the<br /> latter. That’s probably bad practice, but I don’t use Perl for<br /> anything else, so it doesn’t really matter. <br /> <br /> If it’s _not_ a version issue, then it’s an installation issue –<br /> CWB-Perl has been installed to some folder somewhere, but not one of<br /> the places that perl looks for modules. The solution then is either<br /> (a) to reinstall while making sure that you’ve configured it to go<br /> into one of the places Perl looks (See the README/INSTALL file for<br /> how) or (b) to change Perl’s @INC to add in the folder you want it<br /> to look in by using -I /PATH/TO/FOLDER on the command line [<a href="https://perldoc.perl.org/perlrun.html" target="_blank" rel="noopener noreferrer">1</a>]. <br /> <br /> best <br /> <br /> Andrew. <br /> <br /> FROM: <a href="mailto:cwb-bounces@sslmit.unibo.it">cwb-bounces@sslmit.unibo.it</a> <<a href="mailto:cwb-bounces@sslmit.unibo.it">cwb-bounces@sslmit.unibo.it</a>> ON<br /> BEHALF OF Aleksandar Trklja<br /> SENT: 03 April 2019 13:43<br /> TO: <a href="mailto:cwb@sslmit.unibo.it">cwb@sslmit.unibo.it</a><br /> SUBJECT: [CWB] EncodeBNC can't locate CWB <br /> <br /> Dear all, <br /> <br /> I've been trying to encode the BNC with "EncodeBNC.perl" on a remote<br /> server and although CWB has been installed and works properly the<br /> following error message returns when I run 'PERL ENCODEBNC.PERL -F<br /> /HOME/TMO/ /HOME/TMP'<br /> <br /> CAN'T LOCATE CWB.PM IN @INC (YOU MAY NEED TO INSTALL THE CWB MODULE)<br /> (@INC CONTAINS: LIB /ETC/PERL<br /> /USR/LOCAL/LIB/X86_64-LINUX-GNU/PERL/5.26.1<br /> /USR/LOCAL/SHARE/PERL/5.26.1 /USR/LIB/X86_64-LINUX-GNU/PERL5/5.26<br /> /USR/SHARE/PERL5 /USR/LIB/X86_64-LINUX-GNU/PERL/5.26<br /> /USR/SHARE/PERL/5.26 /USR/LOCAL/LIB/SITE_PERL<br /> /USR/LIB/X86_64-LINUX-GNU/PERL-BASE) AT LIB/BNC/META.PM LINE 62.<br /> BEGIN FAILED--COMPILATION ABORTED AT LIB/BNC/META.PM LINE 62.<br /> COMPILATION FAILED IN REQUIRE AT LIB/BNC/DOC.PM LINE 6.<br /> BEGIN FAILED--COMPILATION ABORTED AT LIB/BNC/DOC.PM LINE 6.<br /> COMPILATION FAILED IN REQUIRE AT ENCODEBNC.PERL LINE 14.<br /> BEGIN FAILED--COMPILATION ABORTED AT ENCODEBNC.PERL LINE 14<br /> <br /> EncodeBNC can't locate CWB - that much I can understand (or I might be<br /> wrong) but the rest is a mystery for me. <br /> <br /> I can also confirm that the CWB/Perl interface and xsltproc have been<br /> installed. <br /> <br /> Btw, how can you check where exactly has CWB been installed?<br /> <br /> Thanks.<br /> <br /> Best wishes<br /> Aleks <br /> <br /> -- <br /> <br /> _Dr Aleksandar Trklja_<br /> _Senior Lecturer_<br /> _Department of Translation Studies_ <br /> <br /> _University of Vienna_ <br /> <br /> Links:<br /> ------<br /> [1] <a href="https://perldoc.perl.org/perlrun.html" target="_blank" rel="noopener noreferrer">https://perldoc.perl.org/perlrun.html</a><br /> _______________________________________________<br /> CWB mailing list<br /> <a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><br /> <a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank" rel="noopener noreferrer">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a></blockquote>
<br />
<div>-- <br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><em>Dr Aleksandar Trklja</em><br /><em>Senior Lecturer</em><br /><em>Department of Translation Studies</em></div>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><em>University of Vienna</em></div>
</div>
</div>
</body></html>