<div dir="ltr"><div>Thanks for answering Stephanie...</div><div>in the directory you point out i've got the following:</div><div>ls -la /usr/local/share/perl/5.38.2/CWB<br>total 152<br>drwxrwxr-x 3 root root 4096 sep 16 20:28 .<br>drwxrwxr-x 3 root root 4096 sep 16 20:28 ..<br>drwxrwxr-x 2 root root 4096 sep 16 20:28 CEQL<br>-r--r--r-- 1 root root 53593 jul 21 2022 CEQL.pm<br>-r--r--r-- 1 root root 216 sep 16 20:28 Config.pm<br>-r--r--r-- 1 root root 39268 jul 21 2022 CQP.pm<br>-r--r--r-- 1 root root 40161 jul 21 2022 Encoder.pm</div><div><br></div><div>As you can see, read access is granted.</div><div><br></div><div>And I don't know if this is correct or not, but on the parent directory I've got:<br></div><div>ls -la /usr/local/share/perl/5.38.2/<br>total 68<br>drwxrwxr-x 3 root root 4096 sep 16 20:28 .<br>drwxrwxr-x 7 root root 4096 sep 16 20:28 ..<br>drwxrwxr-x 3 root root 4096 sep 16 20:28 CWB<br>-r--r--r-- 1 root root 54024 jul 21 2022 CWB.pm</div><div><br></div><div>While in the "found" directory, as you say, there are only the CL directory and the CL.pm file<br></div><div>ls -la /usr/local/lib/x86_64-linux-gnu/perl/5.38.2/CWB<br>total 56<br>drwxrwxr-x 3 root root 4096 ago 19 2022 .<br>drwxrwxr-x 11 root root 4096 sep 2 2022 ..<br>drwxrwxr-x 2 root root 4096 ago 19 2022 CL<br>-r--r--r-- 1 root root 44842 jul 21 2022 CL.pm+</div><div><br></div><div>Just in case, I did the installation again with CPAN, but it all remains the same...</div><div><br></div><div>I hope you can advise me on how to proceed... Thanks again!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El lun, 16 sept 2024 a las 20:10, Stephanie Evert (<<a href="mailto:stefanML@collocations.de">stefanML@collocations.de</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Andrés,<br>
<br>
re-installing CWB wasn't your problem, what you're lacking are the CWB perl modules which contain the CEQL parser used by older versions of CQPweb to implement simple queries. Since some of the Perl modules are there, you must have installed them at some point, ideally with<br>
<br>
cpan CWB<br>
cpan CWB::CL<br>
<br>
In understand that you found a directory<br>
<br>
/usr/local/lib/x86_64-linux-gnu/perl/5.38.2/CWB<br>
<br>
but this should only contain the CWB::CL module, which includes compiled code. It is also worrying that your directory listing contains CL.pm, which must be a very old version of the module before it was renamed to CWB::CL. But you don't need either for CWB.<br>
<br>
The modules you actually need should be in<br>
<br>
/usr/local/share/perl/5.38.2/CWB<br>
<br>
because they're platform-independent pure Perl packages. The error message from the CQPweb server says that it can't access the file "CEQL.pm" in this directory. One possibility would be that file access permissions prevent the Web server from reading the file.<br>
<br>
Best,<br>
Stephanie<br>
<br>
<br>
> On 16 Sep 2024, at 16:03, Andrés Chandía <<a href="mailto:andreschandiaf@gmail.com" target="_blank">andreschandiaf@gmail.com</a>> wrote:<br>
> <br>
> Just another fact: queries with cqp syntax work well, but simple queries do not, they output the error message I opened this thread with..<br>
> <br>
> El lun, 16 sept 2024 a las 11:00, Andrés Chandía (<<a href="mailto:andreschandiaf@gmail.com" target="_blank">andreschandiaf@gmail.com</a>>) escribió:<br>
> After re-installing cwb the problem does not solves but the message now says:<br>
> or make that module available in @INC (@INC contains:<br>
> /etc/perl<br>
> /usr/local/lib/x86_64-linux-gnu/perl/5.38.2<br>
> /usr/local/share/perl/5.38.2<br>
> /usr/lib/x86_64-linux-gnu/perl5/5.38<br>
> /usr/share/perl5<br>
> /usr/lib/x86_64-linux-gnu/perl-base<br>
> /usr/lib/x86_64-linux-gnu/perl/5.38<br>
> /usr/share/perl/5.38 /usr/local/lib/site_perl)."<br>
> Checking what's inside of the second listed directory I get:<br>
> auto Bundle CL.pm CWB DBD DBI DBI.pm <a href="http://dbixs_rev.pl" rel="noreferrer" target="_blank">dbixs_rev.pl</a> HTML perllocal.pod Proc Term Win32<br>
> <br>
> Where the cwb modules are present but I still get the error message...<br>
> <br>
> that's so far...<br>
> <br>
> El dom, 15 sept 2024 a las 20:26, Andrés Chandía (<<a href="mailto:andreschandiaf@gmail.com" target="_blank">andreschandiaf@gmail.com</a>>) escribió:<br>
> Hi there,<br>
> I've gone through an update of the server where our installation of cqpweb redsides..<br>
> When i do a query now I get:<br>
> <br>
> Sorry, your simple query [[[ word ]]] contains a syntax error.<br>
> Base class package "CWB::CEQL" is empty.<br>
> (Perhaps you need to 'use' the module which defines that package first,<br>
> or make that module available in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.38.2 /usr/local/share/perl/5.38.2 /usr/lib/x86_64-linux-gnu/perl5/5.38 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.38 /usr/share/perl/5.38 /usr/local/lib/site_perl).<br>
> at ../lib/perl/cqpwebCEQL.pm line 27.<br>
> BEGIN failed--compilation aborted at ../lib/perl/cqpwebCEQL.pm line 27.<br>
> Compilation failed in require at - line 2.<br>
> <br>
> In the manual it says:<br>
> <br>
> Assuming you do install to this standard location, there is a known “gotcha” to be aware of:<br>
> when you update your system software to use a newer version of Perl, any modules in directories whose path includes the old version number may no longer be detected. You will need either to reinstall the modules, or else to move the modules across from the directory with the old version number to the directory with the new version number.<br>
> <br>
> So I checked where the server stores perl, this is what I got:<br>
> /usr/share/perl/<br>
> 5.38 -> 5.38.2<br>
> /5.38.2<br>
> <br>
> /usr/share/perl5/<br>
> Algorithm CGI cpanfile.pod Devel Error.pm Getopt IO local MailTools.pm MooX Parse Reply String TimeDate.pm WWW Any CGI.pm Data Dpkg Eval Git IPC LWP MailTools.pod MRO Path Role Sub Try X11 App CGI.pod Date Dpkg.pm Exporter Git.pm JSON lwpcook.pod Method namespace Pod Roman.pm Test Type XML Archive Class Debconf DynaLoader Fh.pm HTML JSON.pm LWP.pm Module Net Readonly.pm Software Text Types Authen CPAN Debian Encode File HTTP lib lwptut.pod Moo <a href="http://oo.pm" rel="noreferrer" target="_blank">oo.pm</a> Ref strictures Tie URI B cpanfile-faq.pod DebianLinux.pm Error Font Import List Mail Moo.pm Package Regexp <a href="http://strictures.pm" rel="noreferrer" target="_blank">strictures.pm</a> Time URI.pm<br>
> <br>
> /usr/lib/x86_64-linux-gnu/perl/<br>
> 5.38 -> 5.38.2<br>
> 5.38.2 cross-config-5.38.2 debian-config-data-5.38.2<br>
> <br>
> /usr/lib/x86_64-linux-gnu/perl5/<br>
> 5.38<br>
> <br>
> /usr/lib/x86_64-linux-gnu/perl-base/<br>
> <a href="http://attributes.pm" rel="noreferrer" target="_blank">attributes.pm</a> <a href="http://builtin.pm" rel="noreferrer" target="_blank">builtin.pm</a> Carp.pm <a href="http://constant.pm" rel="noreferrer" target="_blank">constant.pm</a> Exporter <a href="http://fields.pm" rel="noreferrer" target="_blank">fields.pm</a> Hash IPC <a href="http://overloading.pm" rel="noreferrer" target="_blank">overloading.pm</a> <a href="http://re.pm" rel="noreferrer" target="_blank">re.pm</a> <a href="http://strict.pm" rel="noreferrer" target="_blank">strict.pm</a> unicore <a href="http://warnings.pm" rel="noreferrer" target="_blank">warnings.pm</a> auto <a href="http://bytes_heavy.pl" rel="noreferrer" target="_blank">bytes_heavy.pl</a> Config_git.pl Cwd.pm Exporter.pm File <a href="http://integer.pm" rel="noreferrer" target="_blank">integer.pm</a> <a href="http://lib.pm" rel="noreferrer" target="_blank">lib.pm</a> <a href="http://overload.pm" rel="noreferrer" target="_blank">overload.pm</a> Scalar Symbol.pm <a href="http://utf8.pm" rel="noreferrer" target="_blank">utf8.pm</a> XSLoader.pm AutoLoader.pm <a href="http://bytes.pm" rel="noreferrer" target="_blank">bytes.pm</a> Config_heavy.pl DynaLoader.pm Fcntl.pm FileHandle.pm IO List <a href="http://parent.pm" rel="noreferrer" target="_blank">parent.pm</a> SelectSaver.pm Text <a href="http://vars.pm" rel="noreferrer" target="_blank">vars.pm</a> <a href="http://base.pm" rel="noreferrer" target="_blank">base.pm</a> Carp Config.pm Errno.pm <a href="http://feature.pm" rel="noreferrer" target="_blank">feature.pm</a> Getopt IO.pm <a href="http://locale.pm" rel="noreferrer" target="_blank">locale.pm</a> POSIX.pm Socket.pm Tie warnings<br>
> <br>
> /usr/local/share/perl/<br>
> 5.22.1 5.26.1 5.30.0 5.34.0<br>
> <br>
> As none of these corresponds to the locations you mention in the manual I have created links inside:<br>
> /usr/local/lib/perl/{$version}/ and /usr/lib/perl5/{$version}/<br>
> making the {$version} correspond to the newest version, for example:<br>
> inside /user/lib, where there is no directory perl or perl5:<br>
> ln -s /usr/lib/x86_64-linux-gnu/perl5 because this directory contains "5.38"<br>
> <br>
> As I said, I tried them all without success...<br>
> <br>
> Then I I tried installing:<br>
> dpkg -i cwb_3.5.0-1_amd64.deb<br>
> <br>
> No success again....<br>
> <br>
> So, I downloaded: cwb-3.5.0-src.tar.gz and tried installing:<br>
> ./install-scripts/install-linux<br>
> <br>
> No success...<br>
> <br>
> Finally, I tried<br>
> edit <a href="http://config.mk" rel="noreferrer" target="_blank">config.mk</a> → PLATFORM=linux-64<br>
> make clean<br>
> make depend<br>
> make all<br>
> make install<br>
> make realclean<br>
> <br>
> But I still get the same message on querying... so, my question is, am I doing the right things?, if not, how should I solve this problem...<br>
> Thanks!<br>
> <br>
> -- <br>
> Andrés Chandía<br>
> <br>
> <br>
> -- <br>
> Andrés Chandía<br>
> <br>
> <br>
> -- <br>
> Andrés Chandía<br>
> _______________________________________________<br>
> CWB mailing list<br>
> <a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
> <a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
<br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Andrés Chandía</div>