Re: [Openca-Users] Problem compiling: XML::Parser-2.23 important vice 2.34?

2004-08-17 Thread Kevin
On Tue, 2004-08-17 at 10:37, Michael Bell wrote:
> Hi Kevin,
> 
> you are missing some files from Expat:
> 
> /usr/lib/perl5> find . -name "*xpat*"
> ./site_perl/5.8.0/i586-linux-thread-multi/XML/Parser/Expat.pm
> ./site_perl/5.8.0/i586-linux-thread-multi/auto/XML/Parser/Expat
> ./site_perl/5.8.0/i586-linux-thread-multi/auto/XML/Parser/Expat/Expat.bs
> ./site_perl/5.8.0/i586-linux-thread-multi/auto/XML/Parser/Expat/Expat.so
> 
> The important thing is the auto area which must be linked too.
> 
> Michael

Hi Michael-

Here's what I have when doing the same thing:

tombstone openca-0.9.2-RC6 # find /usr/lib/perl5/vendor_perl/5.8.4/
-name "*xpat*"
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux/auto/XML/Parser/Expat
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux/auto/XML/Parser/Expat/Expat.so
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux/auto/XML/Parser/Expat/Expat.bs
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux/XML/Parser/Expat.pm
tombstone openca-0.9.2-RC6 #

Looks pretty much the same as yours, but...

When I run the perl program "inside" (as mentioned earlier in this
thread), I get the following (abbreviated):

i686-linux::XML::GDOME (version 0.85) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::GDOME::SAX::Builder (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::GDOME::SAX::Generator (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::GDOME::SAX::Parser (version 1.00) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML (version 1.58) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::Boolean (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::Common (version 0.13) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::Literal (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::NodeList (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::Number (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::SAX (version 1.00) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::SAX::Builder (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::SAX::Generator (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::SAX::Parser (version 1.50) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXML::XPathContext (version 0.05) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::LibXSLT (version 1.57) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Parser (version 2.34) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Parser::Expat (version 2.34) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Parser::Style::Debug (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Parser::Style::Objects (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Parser::Style::Stream (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Parser::Style::Subs (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Parser::Style::Tree (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Sablotron (version 0.98) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Sablotron::DOM (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Sablotron::DOM::DOMHandler (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Sablotron::Processor (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Sablotron::SAXBuilder (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Sablotron::SXP (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Sablotron::Situation (version unknown) found in
/usr/lib/perl5/vendor_perl/5.8.4
i686-linux::XML::Sablotron::Situation::DOMHandlerDispatcher (version
unknown) found in /usr/lib/perl5/vendor_
perl/5.8.4

Is the i686-linux:: prefix in front of the Expat module somehow
preventing openca/perl from seeing that module as XML::Parser::Expat? 
What output do you get on your system from Inside?  I see that your
Expat modules are located in a directory prefixed with
...i586-linux-thread-multi...
Is this directory prefix on my system (i686-linux) causing the module to
be prefixed with the i686-linux:: string (and thus, perhaps preventing
it from being seen as XML::Parser::Expat by perl/OpenCA)?

The head of my
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux/XML/Parser/Expat.pm
file reads as follows:
=
package XML::Parser::Expat;

require 5.004;

use strict;
...
=

Seems to me that inside should be detecting this module as written here:
XML::Parser::Expat;

but instead it seems to be finding it as i686-linux::XML::Parser::Expat;
I'm thinking that's the problem, but am not sure and I'm sorry, but I
know very little about perl and perhaps I ne

Re: [Openca-Users] Problem compiling: XML::Parser-2.23 important vice 2.34?

2004-08-17 Thread Michael Bell
Hi Kevin,
you are missing some files from Expat:
/usr/lib/perl5> find . -name "*xpat*"
./site_perl/5.8.0/i586-linux-thread-multi/XML/Parser/Expat.pm
./site_perl/5.8.0/i586-linux-thread-multi/auto/XML/Parser/Expat
./site_perl/5.8.0/i586-linux-thread-multi/auto/XML/Parser/Expat/Expat.bs
./site_perl/5.8.0/i586-linux-thread-multi/auto/XML/Parser/Expat/Expat.so
The important thing is the auto area which must be linked too.
Michael
--
---
Michael Bell   Email: [EMAIL PROTECTED]
ZE Computer- und MedienserviceTel.: +49 (0)30-2093 2482
(Computing Centre)Fax:  +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin   Email (private): [EMAIL PROTECTED]
Germany   http://www.openca.org
---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users


Re: [Openca-Users] Problem compiling: XML::Parser-2.23 important vice 2.34?

2004-08-17 Thread Kevin
I think I've found the problem now, but not sure about the best way to
fix it.

I used Tom Phoenix's perl module Inside to discover that, for some
reason, XML::Parser::Expat is installed on my system as:

i686-linux::XML::Parser::Expat (version 2.34) found in
/usr/lib/perl5/vendor_perl/5.8.4

I suppose one very difficult way to resolve the problem would be to
change all instances of XML::Parser::Expat in the OpenCA code to
i686-linux::XML::Parser::Expat, but that seems awfully silly.

Anyone have a suggestion on the best way to resolve this one?

Thanks.

-Kevin




---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users


Re: [Openca-Users] Problem compiling: XML::Parser-2.23 important vice 2.34?

2004-08-17 Thread Kevin
On Fri, 2004-08-13 at 03:11, Michael Bell wrote:
> Kevin wrote:
> 
> > Or is this the problem?
> > "Can't locate XML/Parser.pm in @INC (@INC contains:
> > ..."
> > 
> > I don't see XML/Parser.pm in @INC either.  How do I get it there given
> > that I do have this module installed on my system?
> 
> You can link it to a directory in you @INC array. Simply run find and 
> then create an appropriate link from one of your directories in @INC to 
> the file or a directory in the path of this file. The path must look 
> exactly like for the original file.
> 

Hi again Michael and thanks for your suggestion here.  I tried it with
the following steps:

tombstone root # cat test.perl
#!/usr/bin/perl
print "[EMAIL PROTECTED] is @INC\n";

tombstone root # ./test.perl
@INC is /etc/perl /usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.4/i686-linux-thread-multi /usr/lib/perl5/5.8.4
/usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.2 .
tombstone root # cd /usr/local/lib/site_perl
tombstone site_perl # ln -s \
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux/XML XML
tombstone site_perl # ls -l
total 0
lrwxrwxrwx1 root root   47 Aug 17 08:50 XML ->
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux/XML
tombstone site_perl # cd XML
tombstone XML # ls -l
total 156
drwxr-xr-x4 root root 4096 Aug 10 13:41 GDOME
-r--r--r--1 root root12554 Aug 10 13:41 GDOME.pm
-r--r--r--1 root root 2862 Aug 10 13:41 GDOME.pod
drwxr-xr-x3 root root 4096 Aug 10 13:54 LibXML
-r--r--r--1 root root31844 Aug 10 09:29 LibXML.pm
-r--r--r--1 root root 5338 Aug 10 09:29 LibXML.pod
-r--r--r--1 root root11061 Aug 10 09:29 LibXSLT.pm
drwxr-xr-x4 root root 4096 Aug 10 08:25 Parser
-r--r--r--1 root root27103 Aug 10 08:25 Parser.pm
drwxr-xr-x4 root root 4096 Aug 10 09:28 Sablotron
-r--r--r--1 root root29538 Aug 10 09:28 Sablotron.pm
-r--r--r--1 root root 7889 Aug 10 09:29 benchmark.pl
tombstone XML # ls -l Parser
total 48
drwxr-xr-x2 root root 4096 Aug 10 08:25 Encodings
-r--r--r--1 root root33917 Aug 10 08:25 Expat.pm
-r--r--r--1 root root 1571 Aug 10 08:25 LWPExternEnt.pl
drwxr-xr-x2 root root 4096 Aug 10 08:25 Style

So I'm thinking I've successfully linked the perl modules in
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux/XML to a directory that is
in @INC.

However, when I run the ./configure and make commands now, I get a
slightly different error:

XML-Twig-3.09/MANIFEST
make[4]: Entering directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules'
Checking if your kit is complete...
Looks good
Warning: prerequisite XML::Parser 2.23 not found.
Writing Makefile for XML::Twig
make[4]: Leaving directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules'
make[4]: Entering directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules/XML-Twig-3.09'
/usr/bin/perl5.8.4 speedup Twig.pm.slow > Twig.pm
Can't locate loadable object for module XML::Parser::Expat in @INC (@INC
contains: ../Digest-SHA1-2.02/blib/lib ../IO-Socket-SSL-0.92/blib/lib 

/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.4/i686-linux-thread-multi /usr/lib/perl5/5.8.4
/usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.2 .) at
/usr/local/lib/site_perl/XML/Parser.pm line 14
Compilation failed in require at /usr/local/lib/site_perl/XML/Parser.pm
line 14.
BEGIN failed--compilation aborted at
/usr/local/lib/site_perl/XML/Parser.pm line 18.
Compilation failed in require at speedup line 5.
BEGIN failed--compilation aborted at speedup line 5.
make[4]: *** [Twig.pm] Fehler 255
make[4]: Leaving directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules/XML-Twig-3.09'
make[3]: *** [XML-Twig-3.09] Error 2
make[3]: Leaving directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules'
make[2]: *** [modules] Error 2
make[2]: Leaving directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/mnt/tmp/working/openca-0.9.2-RC6/src'
make: *** [src] Error 2

Strangely, when I run make a second time, immediately after getting this
error, it does complete successfully.  I'm not sure if it's skipping
over the portions that caused the failure initially or if it's including
them and getting it right the second time or what, but I'd still like to
resolve the problem with XML::Parser just on general principle---perhaps
this is a symptom of a more general problem with my perl installation
and I'd prefer to resolve it now rather than ignore it and have it cause
other problems later.

When

Re: [Openca-Users] Problem compiling: XML::Parser-2.23 important vice 2.34?

2004-08-13 Thread Michael Bell
Kevin wrote:
Or is this the problem?
"Can't locate XML/Parser.pm in @INC (@INC contains:
..."
I don't see XML/Parser.pm in @INC either.  How do I get it there given
that I do have this module installed on my system?
You can link it to a directory in you @INC array. Simply run find and 
then create an appropriate link from one of your directories in @INC to 
the file or a directory in the path of this file. The path must look 
exactly like for the original file.

BTW it looks like on your system are at minimum two perl versions 5.8.2 
and 5.8.4.

Michael
--
---
Michael Bell   Email: [EMAIL PROTECTED]
ZE Computer- und MedienserviceTel.: +49 (0)30-2093 2482
(Computing Centre)Fax:  +49 (0)30-2093 2704
Humboldt-University of Berlin
Unter den Linden 6
10099 Berlin   Email (private): [EMAIL PROTECTED]
Germany   http://www.openca.org
---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users


[Openca-Users] Problem compiling: XML::Parser-2.23 important vice 2.34?

2004-08-12 Thread Kevin
Hi List-

Thanks very kindly to Johnny Gonzalez for pointing it out to me, and to
Kevin Mitcham for writing it, I've been using the OpenCA Cookbook to get
myself started.

Unfortunately, I'm having problems already.  Perhaps I need a different
perl module installed.  make gives me the following error message:

==
...
XML-Twig-3.09/MANIFEST
make[4]: Entering directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules'
Checking if your kit is complete...
Looks good
Warning: prerequisite XML::Parser 2.23 not found.
Writing Makefile for XML::Twig
make[4]: Leaving directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules'
make[4]: Entering directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules/XML-Twig-3.09'
/usr/bin/perl5.8.4 speedup Twig.pm.slow > Twig.pm
Can't locate XML/Parser.pm in @INC (@INC contains:
../Digest-SHA1-2.02/blib/lib ../IO-Socket-SSL-0.92/blib/lib
../IO-stringy-2.108/blib/lib ../MIME-tools-5.411/blib/lib
../MailTools-1.58/blib/lib ../Net-Server-0.86/blib/lib
../XML-Twig-3.09/blib/lib ../libintl-perl-1.10/blib/lib
../openca-ac/blib/lib ../openca-configuration/blib/lib
../openca-crl/blib/lib ../openca-crypto/blib/lib ../openca-db/blib/lib
../openca-dbi/blib/lib ../openca-ldap/blib/lib ../openca-log/blib/lib
../openca-openssl/blib/lib ../openca-pkcs7/blib/lib
../openca-req/blib/lib ../openca-session/blib/lib
../openca-statemachine/blib/lib ../openca-tools/blib/lib
../openca-tristatecgi/blib/lib ../openca-ui-html/blib/lib
../openca-x509/blib/lib ../openca-xml-cache/blib/lib
../perl-ldap-0.28/blib/lib ../Digest-SHA1-2.02/blib/arch
../IO-Socket-SSL-0.92/blib/arch ../IO-stringy-2.108/blib/arch
../MIME-tools-5.411/blib/arch ../MailTools-1.58/blib/arch
../Net-Server-0.86/blib/arch ../XML-Twig-3.09/blib/arch
../libintl-perl-1.10/blib/arch ../openca-ac/blib/arch
../openca-configuration/blib/arch ../openca-crl/blib/arch
../openca-crypto/blib/arch ../openca-db/blib/arch
../openca-dbi/blib/arch ../openca-ldap/blib/arch ../openca-log/blib/arch
../openca-openssl/blib/arch ../openca-pkcs7/blib/arch
../openca-req/blib/arch ../openca-session/blib/arch
../openca-statemachine/blib/arch ../openca-tools/blib/arch
../openca-tristatecgi/blib/arch ../openca-ui-html/blib/arch
../openca-x509/blib/arch ../openca-xml-cache/blib/arch
../perl-ldap-0.28/blib/arch /etc/perl
/usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.4/i686-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.4/i686-linux-thread-multi /usr/lib/perl5/5.8.4
/usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.2 .) at speedup
line 5.
BEGIN failed--compilation aborted at speedup line 5.
make[4]: *** [Twig.pm] Fehler 2
make[4]: Leaving directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules/XML-Twig-3.09'
make[3]: *** [XML-Twig-3.09] Error 2
make[3]: Leaving directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules'
make[2]: *** [modules] Error 2
make[2]: Leaving directory
`/mnt/tmp/working/openca-0.9.2-RC6/src/modules'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/mnt/tmp/working/openca-0.9.2-RC6/src'
make: *** [src] Error 2
tombstone openca-0.9.2-RC6 # epm -q XML-Parser
XML-Parser-2.34
==

It looks like make wants XML::Parser 2.23 and I have XML::Parser-2.34. 
Is this an important dependency?  I mean, does 2.34 lose something that
2.23 has?  If not, can someone offer any hints as to how to get around
this?  I configured with Kevin's configure line (or very near to it):

tombstone openca-0.9.2-RC6 # ./configure   --prefix=/usr/local/openra  
--with-httpd-user=apache   --with-httpd-group=apache  
--with-openca-prefix=/usr/local/openra/openca  
--with-etc-prefix=/usr/local/openra/openca/etc  
--with-httpd-fs-prefix=/usr/local/openra/httpd  
--with-module-prefix=/usr/local/openra/modules  
--with-node-prefix=ra-node   --with-engine=no  
--with-web-host=gnosys.gnosys.us   --enable-ocspd   --enable-dbi  
--enable-rbac   --with-hierarchy-level=ra

Or is this the problem?
"Can't locate XML/Parser.pm in @INC (@INC contains:
..."

I don't see XML/Parser.pm in @INC either.  How do I get it there given
that I do have this module installed on my system?

Any thoughts?

Thanks!

-Kevin




---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Openca-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openca-users