Computing.Net > Forums > Programming > Perl xml::xslt

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Perl xml::xslt

Reply to Message Icon

Name: rakesh4112
Date: November 28, 2007 at 23:23:13 Pacific
OS: AIX 5.3.0.0
CPU/Ram: IBM
Product: IBM
Comment:

Hello,

I have a problem using the XML::XSLT Perl Module. I've installed the module using the CPAN shell, as well as the dependencies that come up during the installation (as root) but when I attempt to 'use XML::XSLT' in my scripts, I get the following error:


Can't locate XML/DOM/DOMException.pm in @INC (@INC contains: /usr/opt/perl5/lib/5.8.2/aix-thread-multi /usr/opt/perl5/lib/5.8.2 /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.2 /usr/opt/perl5/lib/site_perl .) at /usr/opt/perl5/lib/site_perl/5.8.2/XML/DOM.pm line 526.
BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.8.2/XML/DOM.pm line 526.
Compilation failed in require at /usr/opt/perl5/lib/site_perl/5.8.2/XML/XSLT.pm line 91.
BEGIN failed--compilation aborted at /usr/opt/perl5/lib/site_perl/5.8.2/XML/XSLT.pm line 91.
Compilation failed in require at afsToIT5.pl line 5.
BEGIN failed--compilation aborted at afsToIT5.pl line 5.

Here is the beginning of the script where the problem resides;
--------------
#!/usr/bin/perl

use strict;
use File::Temp;
use XML::XSLT;
---------------

I've checked to see that the XML::DOM module is installed in the default CPAN install directory for modules (it was a dependent of XML::XSLT).

Any suggestions as to why this is happening? Any more info needed?

Thank you all,

RT




Sponsored Link
Ads by Google

Response Number 1
Name: FishMonger
Date: November 28, 2007 at 23:59:57 Pacific
Reply:

The error is telling you that Perl can't find the XML::DOM::DOMException module. Either it's not installed, or was not installed correctly.

Try reinstalling it.
http://search.cpan.org/author/TJMAT...

If you do have it on your system, then you may want to uninstall it before trying to reinstall.


0

Response Number 2
Name: rakesh4112
Date: November 29, 2007 at 07:45:10 Pacific
Reply:

Thanks for the reply FishMonger.

Is there a defined way to uninstall modules?

I was reading up on it and lots of posts said it wasn't encouraged to do so. I'm willing to try though.

So is there a process to uninstall? I'm on AIX 5.3 by the way.

RT


0

Response Number 3
Name: FishMonger
Date: November 29, 2007 at 12:25:24 Pacific
Reply:

FAQ: How do I remove installed Perl modules?
http://cpan.org/misc/cpan-faq.html#...

However, since Perl doesn't "see" the module, this may or may not work. You may need to manually delete the module directories.

I didn't realize this until now, but the link I gave for the module shows that particular module isn't being distributed. You may need to contact its author.

I haven't used the XML::XSLT module, but if it depends on your missing module, you may want to remove/reinstall XML::XSLT and watch for build errors.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Another Simple Program As... Bat Delete some folders b...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Perl xml::xslt

Perl/XML simple solution www.computing.net/answers/programming/perlxml-simple-solution/9342.html

MySQL Data Conversion www.computing.net/answers/programming/mysql-data-conversion/7196.html

How much do you charge? Make Code! www.computing.net/answers/programming/how-much-do-you-charge-make-code/6476.html