Perl module install fails cause of wrong @INC path

Furnish, Trever G TGFurnish at herffjones.com
Wed Oct 7 16:32:20 UTC 2009


See also:

man perlvar
	Search for INC.  Note the reference to -I.

man perlrun
	Search for PERL5LIB.
	Search for PERLLIB.

Add the perl directory to the beginning of your PATH:
export PATH="/path/to/new/perl:$PATH"

Be sure you export any other variables you set as well.

--
Trever


> -----Original Message-----
> From: redhat-list-bounces at redhat.com [mailto:redhat-list-
> bounces at redhat.com] On Behalf Of Marti, Robert
> Sent: Monday, October 05, 2009 4:07 PM
> To: 'Roderick'; 'General Red Hat Linux discussion list'
> 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




More information about the redhat-list mailing list