Some one commented in a post once that I shouldn't use cpan shell to install Perl modules on a RPM managed system. So to get a round a recent missing XML::DOM module I did the following.
Download and install cpan2rpm from http://perl.arix.com/cpan2rpm/
rpm -Uvh cpan2rpm-2.028-1.noarch.rpm
cpan2rpm XML::DOM
# this will fail with an error
# something like Missing Dep XML::RegExp
cpan2rpm XML::RegExp
# this will fail with an error
# error: You must set "%_gpg_name" in your macro file
# so install deps and use --no-sign option
cpan2rpm --no-sign XML::RegExp
rpm -ivh /usr/src/redhat/RPMS/noarch/perl-XML-RegExp-0.02-1.noarch.rpm
cpan2rpm --no-sign XML::DOM
rpm -ivh /usr/src/redhat/RPMS/noarch/perl-XML-DOM-1.44-1.noarch.rpm
Done
Any reason not to get them from EPEL? I.e.:
http://download.fedora.redhat.com/pub/epel/5/x86_64/repoview/perl-XML-RegExp.html
http://download.fedora.redhat.com/pub/epel/5/x86_64/repoview/perl-XML-DOM.html
EPEL:
http://fedoraproject.org/wiki/EPEL
Yes. I didn't know about EPEL 🙂 Thanks for providing the enlightenment. Much appreciated
Another reason I didn't look for a Redhat repository was because of a deep and abiding distrust of mixing repositories. I seemed to run smack into the circular dependency nightmare when I ran Fedora Core 1 - 6 with multiple non-official repositories enabled. I presume that things are alot better now though.
Indeed. I share your mistrust of third-party repos, which is part of why I am so enthused about EPEL, which is sort of semi-official (they are largely rebuilds of Fedora packages). At any rate, the quality of package included appears to be quite high, with an ethos of long-term support matching that of RHEL and it's derivatives.
hope this help: xml xpath confusing http://www.linuxine.com/story/xml-xpath-confusing