Perl module install fails cause of wrong @INC path
Roderick Derks
redhat at r71.nl
Wed Oct 7 21:35:11 UTC 2009
Yep, the $PERL5LIB was the winning answer.
Learned something again about perl.
Thnx for the mail!
Roderick
----- Original Message -----
From: "Percy Barboza" <p_barboza at hotmail.com>
To: redhat at r71.nl, rjm002 at shsu.edu, "General Red Hat Linux discussion list" <redhat-list at redhat.com>
Sent: Woensdag 7 oktober 2009 11:35:57 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: RE: Perl module install fails cause of wrong @INC path
Assuming you have installed your module in your home directory /home/user/modules
To unshift it into the @INC array use this syntax
use modules '/home/user/modules';
use Net::Telnet;
This will add modules to the top of @INC array
Percy
> Date: Tue, 6 Oct 2009 09:26:45 +0200
> From: redhat at r71.nl
> To: RJM002 at shsu.edu; redhat-list at redhat.com
> CC:
> Subject: Re: Perl module install fails cause of wrong @INC path
>
> Thnx for the suggestion. I tried this offcourse before asking the redhat community. A lot of suggestions via google say I have to add a path to the perl script using code like
> use "LWP.pm";
> But the thing is that I need to run the following command:
> Make Test
> And so I can not add the code to a script. Maybe I can add it somewhere, but where???
>
> Grtz,
> Roderick
>
>
> ----- Original Message -----
> From: "Robert Marti" <RJM002 at shsu.edu>
> To: "Roderick" <redhat at r71.nl>, "General Red Hat Linux discussion list" <redhat-list at redhat.com>
> Sent: Maandag 5 oktober 2009 22:06:56 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
> Subject: RE: Perl module install fails cause of wrong @INC path
>
> http://lmgtfy.com/?q=perl+add+path+to+%40inc
>
> Rob Marti
>
> -----Original Message-----
> From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com] On Behalf Of Roderick Derks
> Sent: Monday, October 05, 2009 3:02 PM
> To: General Red Hat Linux discussion list
> Subject: Re: Perl module install fails cause of wrong @INC path
>
> Any suggestions?
> thnx!
>
> ----- Original Message -----
> From: "Roderick Derks" <redhat at r71.nl>
> To: "General Red Hat Linux discussion list" <redhat-list at redhat.com>
> Sent: Vrijdag 2 oktober 2009 11:32:57 GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
> Subject: Perl module install fails cause of wrong @INC path
>
> Hi,
> I'm trying to install the Net::Telnet module on my Linux RedHat server, but in the perl environment that has been delivered with the application. So I'm logged in as a user that has a Perl environment other then the original Linux perl environment.
>
> This installing should be no problem, but the @INC paths are not set in the correct way to install the NET::Telnet module. I get errors after executing a "make test ". If I can add the correct paths to the @INC array then things should work out OK I guess.
>
> -bash-3.00$ make test
> PERL_DL_NONLAZY=1 /quovadx/qdx5.6/integrator/bin/perl588 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> Can't locate ExtUtils/Command/MM.pm in @INC (@INC contains: /work/jerickso/quovadx_dev/qdx5.6P/integrator/lib/perl5/5.8.8/i686-linux /work/jerickso/quovadx_dev/qdx5.6P/integrator/lib/perl5/5.8.8 /work/jerickso/quovadx_dev/qdx5.6P/integrator/lib/perl5/site_perl/5.8.8/i686-linux /work/jerickso/quovadx_dev/qdx5.6P/integrator/lib/perl5/site_perl/5.8.8 /work/jerickso/quovadx_dev/qdx5.6P/integrator/lib/perl5/site_perl .).
> BEGIN failed--compilation aborted.
> make: *** [test_dynamic] Error 2
>
> I would like to add /quovadx/qdx5.6/integrator/external/Perl_5.8.8/ to the @INC array. How do I do this??
>
> Please advice. Thnx for helping me out!
>
> Roderick
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>From the happening headlines to the juiciest gossip, get your daily update on MSN India Drag n' drop
More information about the redhat-list
mailing list