http://qs321.pair.com?node_id=630505

wruehl has asked for the wisdom of the Perl Monks concerning the following question:

Thanks to the help of the monks, I was recently able to code a port monitoring script that works perfectly with my base perl installation. The only problem is that it needs to run under the NetIQ Appmanager program, which uses an entirely different Perl distribution with different @INC directories(5.8.2 vs 5.8.5 for normal Perl).

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.