<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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
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.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#1F497D;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.codeblock
        {mso-style-name:code_block;}
.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"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:EN-US">OK first,<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:"Courier New"">>>In fact,
<strong><span style="font-family:"Courier New"">locate CWB.pm </span></strong> does not show that perl modules are in this new destination and returns an empty line.<br>
<br>
</span><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">New or newly-moved files aren’t findable via
<b>locate </b>until the filesystem database updates. This usually happens overnight. If you are an admin, run
<b>sudo updatedb</b> . <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">Second, it looks like you had not actually installed to begin with – so it is not a version change - rather – the presence of the
blib directory in your downloaded code suggests you built the code but then did not install them. In this case, moving the modules does NOT solve the problem. (The move is from an install dir to an install dir, moving from a pre-install location direct to
the install location is NOT recommended)./<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">Please start over again. Read the README, and 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="vertical-align:baseline"><span style="font-size:10.5pt;font-family:"Courier New";color:#555555;border:none windowtext 1.0pt;padding:0cm"> perl Makefile.PL<o:p></o:p></span></p>
<p class="MsoNormal" style="vertical-align:baseline"><span style="font-size:10.5pt;font-family:"Courier New";color:#555555;border:none windowtext 1.0pt;padding:0cm"> make<o:p></o:p></span></p>
<p class="MsoNormal" style="vertical-align:baseline"><span style="font-size:10.5pt;font-family:"Courier New";color:#555555;border:none windowtext 1.0pt;padding:0cm"> make test<o:p></o:p></span></p>
<p class="MsoNormal" style="vertical-align:baseline"><span style="font-size:10.5pt;font-family:"Courier New";color:#555555;border:none windowtext 1.0pt;padding:0cm"> make install</span><span style="font-size:10.5pt;font-family:"Courier New";color:#555555"><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">as per instructions. Last command needs sudo’er power, if you don’t have that, then you need to change the installation prefix to somewhere
you can install to. (prob in your ~ ) Then you’d need to use either the -I flag or the PERL5LIB environment var to tell Perl which directories to look in.<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>
<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"><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 20:15<br>
<b>To:</b> Open source development of the Corpus WorkBench <cwb@sslmit.unibo.it><br>
<b>Subject:</b> Re: [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"">Hi Andrew,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Many thanks for your suggestions!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">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.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">locate CWB.pm returned the following two paths:<br>
<strong><span style="font-family:"Courier New"">home/blak/CWB-2.2.102/blib/lib/CWB.pm</span></strong><br>
<strong><span style="font-family:"Courier New"">home/blak/CWB-2.2.102/lib/CWB.pm</span></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><span style="font-family:"Courier New"">blib</span></strong> and <strong>
<span style="font-family:"Courier New"">lib</span></strong> and moved them to <strong>
<span style="font-family:"Courier New"">/usr/lib/x86_64-linux-gnu/perl/5.26/</span></strong> Was this a mistake?<br>
<br>
I've checked whether the content of the folders was properly moved and it was:<br>
</span><a href="mailto:trklja@trklja:/usr/lib/x86_64-linux-gnu/perl/5.26/lib$"><span style="font-size:10.0pt;font-family:"Courier New"">trklja@trklja:/usr/lib/x86_64-linux-gnu/perl/5.26/lib$</span></a><strong><span style="font-size:10.0pt;font-family:"Courier New"">
ls</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><br>
<strong><span style="font-family:"Courier New"">CWB CWB.pm</span></strong><br>
<br>
</span><a href="mailto:trklja@trklja:/usr/lib/x86_64-linux-gnu/perl/5.26/blib$"><span style="font-size:10.0pt;font-family:"Courier New"">trklja@trklja:/usr/lib/x86_64-linux-gnu/perl/5.26/blib$</span></a><strong><span style="font-size:10.0pt;font-family:"Courier New"">
ls</span></strong><span style="font-size:10.0pt;font-family:"Courier New""><br>
<strong><span style="font-family:"Courier New"">arch bin lib man1 man3 script</span></strong><br>
<br>
But, EncodeBNC.perl still can't locate CWB.pm in @INC. In fact, <strong><span style="font-family:"Courier New"">locate CWB.pm </span></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.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">If this doesn't work I'll try with a new installation.<br>
<br>
Best<br>
Aleks<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""> <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Am 03.04.2019 16:37, schrieb Hardie, Andrew:
<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 5.0pt;margin-left:0cm;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">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 [</span><a href="https://perldoc.perl.org/perlrun.html" target="_blank"><span style="font-size:10.0pt;font-family:"Courier New"">1</span></a><span style="font-size:10.0pt;font-family:"Courier New"">].
<br>
<br>
best <br>
<br>
Andrew. <br>
<br>
FROM: </span><a href="mailto:cwb-bounces@sslmit.unibo.it"><span style="font-size:10.0pt;font-family:"Courier New"">cwb-bounces@sslmit.unibo.it</span></a><span style="font-size:10.0pt;font-family:"Courier New""> <</span><a href="mailto:cwb-bounces@sslmit.unibo.it"><span style="font-size:10.0pt;font-family:"Courier New"">cwb-bounces@sslmit.unibo.it</span></a><span style="font-size:10.0pt;font-family:"Courier New"">>
ON<br>
BEHALF OF Aleksandar Trklja<br>
SENT: 03 April 2019 13:43<br>
TO: </span><a href="mailto:cwb@sslmit.unibo.it"><span style="font-size:10.0pt;font-family:"Courier New"">cwb@sslmit.unibo.it</span></a><span style="font-size:10.0pt;font-family:"Courier New""><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>
<span style="background:yellow;mso-highlight:yellow">(@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</span>.<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] </span><a href="https://perldoc.perl.org/perlrun.html" target="_blank"><span style="font-size:10.0pt;font-family:"Courier New"">https://perldoc.perl.org/perlrun.html</span></a><span style="font-size:10.0pt;font-family:"Courier New""><br>
_______________________________________________<br>
CWB mailing list<br>
</span><a href="mailto:CWB@sslmit.unibo.it"><span style="font-size:10.0pt;font-family:"Courier New"">CWB@sslmit.unibo.it</span></a><span style="font-size:10.0pt;font-family:"Courier New""><br>
</span><a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank"><span style="font-size:10.0pt;font-family:"Courier New"">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</span></a><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><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>