<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi Aleks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">cqp -v</span></b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"> will
tell you where the binaries are for the CWB core. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Perl modules are different matter, the easiest way to find out is to run<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-indent:36.0pt"><b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">locate CWB.pm
<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">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. <b>/usr/local/share/perl/5.20.2/</b> – if a new version of perl is then installed, it will no longer look in that folder, but instead at, for instance, <b>/usr/local/share/perl/5.26.1/</b> (one of the folders on your @INC)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">If it’s
<i>not</i> 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
<a href="https://perldoc.perl.org/perlrun.html">using <b>-I /path/to/folder</b> on the command line</a>.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> cwb-bounces@sslmit.unibo.it <cwb-bounces@sslmit.unibo.it>
<b>On Behalf Of </b>Aleksandar Trklja<br>
<b>Sent:</b> 03 April 2019 13:43<br>
<b>To:</b> cwb@sslmit.unibo.it<br>
<b>Subject:</b> [CWB] EncodeBNC can't locate CWB<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Dear all,
<br>
<br>
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 '<strong><span style="font-family:"Courier New"">perl EncodeBNC.perl -f /home/tmo/
/home/tmp</span></strong>'<br>
<br>
</span><strong><span style="font-size:9.0pt;font-family:"Courier New"">Can't locate CWB.pm in @INC (you may need to install the CWB module) (@INC contains:
<span style="background:yellow;mso-highlight:yellow">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</span>) at lib/BNC/Meta.pm line 62.</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><br>
</span><strong><span style="font-size:9.0pt;font-family:"Courier New"">BEGIN failed--compilation aborted at lib/BNC/Meta.pm line 62.</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><br>
</span><strong><span style="font-size:9.0pt;font-family:"Courier New"">Compilation failed in require at lib/BNC/Doc.pm line 6.</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><br>
</span><strong><span style="font-size:9.0pt;font-family:"Courier New"">BEGIN failed--compilation aborted at lib/BNC/Doc.pm line 6.</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><br>
</span><strong><span style="font-size:9.0pt;font-family:"Courier New"">Compilation failed in require at EncodeBNC.perl line 14.</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><br>
</span><strong><span style="font-size:9.0pt;font-family:"Courier New"">BEGIN failed--compilation aborted at EncodeBNC.perl line 14</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><br>
<br>
EncodeBNC can't locate CWB - that much I can understand (or I might be wrong) but the rest is a mystery for me.
<br>
<br>
<br>
I can also confirm that the CWB/Perl interface and xsltproc have been installed. <br>
<br>
Btw, how can you check where exactly has CWB been installed?<br>
<br>
Thanks.<br>
<br>
Best wishes<br>
Aleks<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">-- <o:p>
</o:p></span></p>
<div>
<p class="MsoNormal"><em><span style="font-size:10.0pt;font-family:"Courier New"">Dr Aleksandar Trklja</span></em><span style="font-size:10.0pt;font-family:"Courier New""><br>
<em><span style="font-family:"Courier New"">Senior Lecturer</span></em><br>
<em><span style="font-family:"Courier New"">Department of Translation Studies</span></em><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><em><span style="font-size:10.0pt;font-family:"Courier New"">University of Vienna</span></em><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>