wruehl has asked for the wisdom of the Perl Monks concerning the following question:
My issue is installing modules into the NetIQ version of Perl, for some reason it is giving me errors with XML::Parser.
One possible solution I thought of is to somehow alter the makefiles for the Perl modules to redirect the installation to one of the @INC directories used by NetIQ's Perl distribution, as I'm assuming they default to the regular perl distribution library directories.
The specific error is as follows I'm getting is as follows:
Can't locate object method "new" via package "XML::Parser" at /opt/netiq/UnixAgent/lib/5.8.2/XML/Simple.pm line 333. The line in question is this one:
my $xp = XML::Parser->new(Style => 'Tree',@{$self->{opt}->{parseropts}});
Thanks,
Bill
Update: Altering the install directories didn't work. In the testing of the modules during the make process, they identified the non-NetIQ version of Perl as the primary copy, and the error remains in NetIQ. Does anyone know how to force a CPAN module to install on a specific installation of Perl?
Update 2: The problem was with NetIQ as I'd originally thought, upgrading the client to one that natively supports XML::Parser fixed the issue.