Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Specifying installation directories for CPAN modules

by wruehl (Acolyte)
on Aug 03, 2007 at 13:14 UTC ( #630505=perlquestion: print w/replies, xml ) Need Help??

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/ line 333. The line in question is this one:

my $xp = XML::Parser->new(Style => 'Tree',@{$self->{opt}->{parseropts}});



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.

  • Comment on Specifying installation directories for CPAN modules

Replies are listed 'Best First'.
Re: Specifying installation directories for CPAN modules
by chromatic (Archbishop) on Aug 03, 2007 at 19:43 UTC

    You'll probably have the fewest problems overall if you run the perl binary shipped with NetIQ when you install the modules; then you won't have to worry about installation directories or binary compatibility with compiled components.

      I'm not quite sure how to do that. I think the Perl binary that ships with NetIQ is only usable by the NetIQ agent itself. I am going to try changing the file install parameters on the perl Makefile.PL line on Monday when I get into work. Hopefully that will properly install the libraries into a NetIQ friendly location.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://630505]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2022-07-06 00:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found