[CWB] how to fix Base class package "CWB::CEQL" is empty

Andrés Chandía andreschandiaf at gmail.com
Mon Sep 16 22:23:28 CEST 2024


Hi again Stephanie, I have reinstalled with CPAN, and now the message is
different...

Syntax error

Sorry, your simple query [[[ word ]]] contains a syntax error.

Parser.c: loadable library and perl binaries are mismatched (got first
handshake key 0xcd00080, needed 0xf380080)


Query with cqp syntax still works though...

El lun, 16 sept 2024 a las 20:41, Andrés Chandía (<andreschandiaf at gmail.com>)
escribió:

> Thanks for answering Stephanie...
> in the directory you point out i've got the following:
> ls -la  /usr/local/share/perl/5.38.2/CWB
> total 152
> drwxrwxr-x 3 root root  4096 sep 16 20:28 .
> drwxrwxr-x 3 root root  4096 sep 16 20:28 ..
> drwxrwxr-x 2 root root  4096 sep 16 20:28 CEQL
> -r--r--r-- 1 root root 53593 jul 21  2022 CEQL.pm
> -r--r--r-- 1 root root   216 sep 16 20:28 Config.pm
> -r--r--r-- 1 root root 39268 jul 21  2022 CQP.pm
> -r--r--r-- 1 root root 40161 jul 21  2022 Encoder.pm
>
> As you can see, read access is granted.
>
> And I don't know if this is correct or not, but on the parent directory
> I've got:
> ls -la  /usr/local/share/perl/5.38.2/
> total 68
> drwxrwxr-x 3 root root  4096 sep 16 20:28 .
> drwxrwxr-x 7 root root  4096 sep 16 20:28 ..
> drwxrwxr-x 3 root root  4096 sep 16 20:28 CWB
> -r--r--r-- 1 root root 54024 jul 21  2022 CWB.pm
>
> While in the "found" directory, as you say, there are only the CL
> directory and the CL.pm file
> ls -la  /usr/local/lib/x86_64-linux-gnu/perl/5.38.2/CWB
> total 56
> drwxrwxr-x  3 root root  4096 ago 19  2022 .
> drwxrwxr-x 11 root root  4096 sep  2  2022 ..
> drwxrwxr-x  2 root root  4096 ago 19  2022 CL
> -r--r--r--  1 root root 44842 jul 21  2022 CL.pm+
>
> Just in case, I did the installation again with CPAN, but it all remains
> the same...
>
> I hope you can advise me on how to proceed... Thanks again!
>
> El lun, 16 sept 2024 a las 20:10, Stephanie Evert (<
> stefanML at collocations.de>) escribió:
>
>> Hi Andrés,
>>
>> 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
>>
>>         cpan CWB
>>         cpan CWB::CL
>>
>> In understand that you found a directory
>>
>>         /usr/local/lib/x86_64-linux-gnu/perl/5.38.2/CWB
>>
>> 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.
>>
>> The modules you actually need should be in
>>
>>         /usr/local/share/perl/5.38.2/CWB
>>
>> 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.
>>
>> Best,
>> Stephanie
>>
>>
>> > On 16 Sep 2024, at 16:03, Andrés Chandía <andreschandiaf at gmail.com>
>> wrote:
>> >
>> > Just another fact: queries with cqp syntax work well, but simple
>> queries do not, they output the error message I opened this thread with..
>> >
>> > El lun, 16 sept 2024 a las 11:00, Andrés Chandía (<
>> andreschandiaf at gmail.com>) escribió:
>> > After re-installing cwb the problem does not solves but the message now
>> says:
>> > 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)."
>> > Checking what's inside of the second listed directory I get:
>> > auto  Bundle  CL.pm  CWB  DBD  DBI  DBI.pm  dbixs_rev.pl  HTML
>> perllocal.pod  Proc  Term  Win32
>> >
>> > Where the cwb modules are present but I still get the error message...
>> >
>> > that's so far...
>> >
>> > El dom, 15 sept 2024 a las 20:26, Andrés Chandía (<
>> andreschandiaf at gmail.com>) escribió:
>> > Hi there,
>> > I've gone through an update of the server where our installation of
>> cqpweb redsides..
>> > When i do a query now I get:
>> >
>> > Sorry, your simple query [[[ word ]]] contains a syntax error.
>> > Base class package "CWB::CEQL" is empty.
>> > (Perhaps you need to 'use' the module which defines that package first,
>> > 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).
>> > at ../lib/perl/cqpwebCEQL.pm line 27.
>> > BEGIN failed--compilation aborted at ../lib/perl/cqpwebCEQL.pm line 27.
>> > Compilation failed in require at - line 2.
>> >
>> > In the manual it says:
>> >
>> > Assuming you do install to this standard location, there is a known
>> “gotcha” to be aware of:
>> > 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.
>> >
>> > So I checked where the server stores perl, this is what I got:
>> > /usr/share/perl/
>> > 5.38 -> 5.38.2
>> > /5.38.2
>> >
>> > /usr/share/perl5/
>> > 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 oo.pm Ref strictures Tie URI B cpanfile-faq.pod
>> DebianLinux.pm Error Font Import List Mail Moo.pm Package Regexp
>> strictures.pm Time URI.pm
>> >
>> > /usr/lib/x86_64-linux-gnu/perl/
>> > 5.38 -> 5.38.2
>> > 5.38.2 cross-config-5.38.2 debian-config-data-5.38.2
>> >
>> > /usr/lib/x86_64-linux-gnu/perl5/
>> > 5.38
>> >
>> > /usr/lib/x86_64-linux-gnu/perl-base/
>> > attributes.pm builtin.pm Carp.pm constant.pm Exporter fields.pm Hash
>> IPC overloading.pm re.pm strict.pm unicore warnings.pm auto
>> bytes_heavy.pl Config_git.pl Cwd.pm Exporter.pm File integer.pm lib.pm
>> overload.pm Scalar Symbol.pm utf8.pm XSLoader.pm AutoLoader.pm bytes.pm
>> Config_heavy.pl DynaLoader.pm Fcntl.pm FileHandle.pm IO List parent.pm
>> SelectSaver.pm Text vars.pm base.pm Carp Config.pm Errno.pm feature.pm
>> Getopt IO.pm locale.pm POSIX.pm Socket.pm Tie warnings
>> >
>> > /usr/local/share/perl/
>> > 5.22.1 5.26.1 5.30.0 5.34.0
>> >
>> > As none of these corresponds to the locations you mention in the manual
>> I have created links inside:
>> > /usr/local/lib/perl/{$version}/ and /usr/lib/perl5/{$version}/
>> > making the {$version} correspond to the newest version, for example:
>> > inside /user/lib, where there is no directory perl or perl5:
>> > ln -s /usr/lib/x86_64-linux-gnu/perl5  because this directory contains
>> "5.38"
>> >
>> > As I said, I tried them all without success...
>> >
>> > Then I I tried installing:
>> > dpkg -i cwb_3.5.0-1_amd64.deb
>> >
>> > No success again....
>> >
>> > So, I downloaded: cwb-3.5.0-src.tar.gz and tried installing:
>> > ./install-scripts/install-linux
>> >
>> > No success...
>> >
>> > Finally, I tried
>> > edit config.mk → PLATFORM=linux-64
>> > make clean
>> > make depend
>> > make all
>> > make install
>> > make realclean
>> >
>> > 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...
>> >  Thanks!
>> >
>> > --
>> > Andrés Chandía
>> >
>> >
>> > --
>> > Andrés Chandía
>> >
>> >
>> > --
>> > Andrés Chandía
>> > _______________________________________________
>> > CWB mailing list
>> > CWB at sslmit.unibo.it
>> > http://liste.sslmit.unibo.it/mailman/listinfo/cwb
>>
>> _______________________________________________
>> CWB mailing list
>> CWB at sslmit.unibo.it
>> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
>>
>
>
> --
> Andrés Chandía
>


-- 
Andrés Chandía
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20240916/37170437/attachment.html>


More information about the CWB mailing list