Re: [tablix-list] 0.2.0 configuration format

From: Nicholas Robinson <nprREMOVE@THISbottlehall.freeserve.co.uk>
Date: Sun Jan 09 2005 - 20:55:00 CET

I did as you suggest and it seems I do have Common.pm on my system.

I did locate Common.pm and I get

[npr@paulo gtablix-0.0.4-2]$ locate Common.pm
/usr/lib/perl5/vendor_perl/5.8.0/HTTP/Request/Common.pm

So I put

use lib '/usr/lib/perl5/vendor_perl/5.8.0/HTTP/Request/Common.pm';

just before the line

use strict;

in gtablix.pl.

I then get...

[npr@paulo gtablix-0.0.4-2]$ ./gtablix.pl
Can't locate XML/LibXML/Common.pm in @INC (@INC contains:
/usr/lib/perl5/vendor_perl/5.8.0/HTTP/Request/
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/XML/LibXML.pm line 11.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/XML/LibXML.pm line 11.
Compilation failed in require at gtablix/xml.pm line 7.
BEGIN failed--compilation aborted at gtablix/xml.pm line 7.
Compilation failed in require at ./gtablix.pl line 16.
BEGIN failed--compilation aborted at ./gtablix.pl line 16.

This seemed to indicate that it would be looking in a relative path XML/LibXML
for Common.pm, so I copied it to

 /usr/lib/per5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/LibXML

And running gtablix I now get...

Bareword "XML_NAMESPACE_DECL" not allowed while "strict subs" in use at
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/XML/LibXML.pm line
1081.
BEGIN not safe after errors--compilation aborted at
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/XML/LibXML.pm line
1151.
Compilation failed in require at gtablix/xml.pm line 7.
BEGIN failed--compilation aborted at gtablix/xml.pm line 7.
Compilation failed in require at ./gtablix.pl line 16.
BEGIN failed--compilation aborted at ./gtablix.pl line 16.

Kind Regards

Nick Robinson

Fight Prejudice - Fight the Ban (see www.countrysidealliance.org)

On Sunday 09 January 2005 09:45, Boštjan Špetič wrote:
> On Sun, 9 Jan 2005 09:22:16 +0000, Nicholas Robinson
<npr@bottlehall.freeserve.co.uk> wrote:
> > I did send you an email in response to your earlier offer to help me get
> > it working, but I got no answer. The latest version gives fewer and
> > different errors but still won't work. In this more recent case, it seems
> > that I have LibXML loaded according to cpan (which I've now got working)
> > but Common.pm seems to be missing. According to the dependencies, this
> > can't happen!
>
> i am really sorry for this confusion, i never received your e-mail. it may
> be due to some mail server problems my hosting organization had. the last
> mail i received from you dates back in 27.11.
>
> so anyway, it'd be useful to know what distribution you are using. some
> distributions don't have very reliable cpan support / they don't set the
> search path for modules as it should be. on debian i had no problems, on
> fedora / redhat always.
>
> you can try searching for the file manually, with "locate Common.pm" and if
> it returns nothing, as root "updatedb", and then again locate... you should
> get the exact location of the file. you can then temporarily get it working
> by putting use lib 'PATH_TO_MODULE';
> before other use statements... yes, it's ugly, it's a hack, but should get
> you started.
>
> oh, i forgot, libxml is not all you need. the parser package is something
> like libxml-libxml or XML::LibXML...
>
>
> regards, bostjan
Received on Sun Jan 09 21:16:38 2005

This archive was generated by hypermail 2.1.8 : Tue Aug 16 2005 - 20:42:52 CEST