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.


In reply to Specifying installation directories for CPAN modules by wruehl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.