[CWB] Re: [ cwb-Bugs-3066695 ] CWB::CL: too few arguments
tofunction cl_string_canonical
Hardie, Andrew
a.hardie at lancaster.ac.uk
Wed Sep 22 13:43:36 CEST 2010
All the Perl modules are still targeted at v3.0 for which PCRE and Glib
aren't needed - so yes, to build them with the 3.2+ version of the CL
you'll need a hack like this.
When we actually update the Perl modules we'll probably use pkg-config
or the like to get these settings (it's probably pkg-config or something
similar that is called within $config_util anyway).
Andrew.
> -----Original Message-----
> From: cwb-bounces at sslmit.unibo.it
> [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Jan Jona Javorsek
> Sent: 22 September 2010 11:52
> To: cwb at sslmit.unibo.it
> Subject: [CWB] Re: [ cwb-Bugs-3066695 ] CWB::CL: too few
> arguments tofunction cl_string_canonical
>
> This particular problem stems from not including all the
> necessary libraries. Sadly, CWB::CL Makefile.PL has not been
> updated, and the cwb-config does not tell it all that is
> needed, but this worked for me:
>
> Replace
>
> my $LD_FLAGS = `'$config_util' -I`
>
> with
>
> my $LD_FLAGS = `'$config_util' -I`. ' -lpcre -lglib-2.0'
>
> and do
>
> make clean; perl Makefile.pl; make; make test
>
> (ignoring all the settings for non-standard install
> locations) - now you can expect to fail some tests since the
> tests believe you work with Latin1, and you have UTF-8. That
> can be fixed by going with latin1 instead of utf8, to test
> the tests actually pass (for me, they do).
>
> And now we can start thinking about how to get the corpus
> encoding and proper query reencoding handled properly in
> CWB::CL - but that is slighly over the top of my head at this point.
>
> (I wish I knew how to reply to the actual bug, sorry about that.)
>
> Cheers,
> -jan
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>
More information about the CWB
mailing list