Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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/perluse 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

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.

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

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.

![]() |
Another Simple Program As...
|
Bat Delete some folders b...
|

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