Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found