Hi all im not sure if this is the right mailing list but im using centos anyway. i run CPAN by perl -MCPAN -e shell and got through the first time configuration and after selecting the mirror sites i got this error and i can't get any modules to be installed. I haven't encountered this before and not very familiar with cpan.
Constant subroutine __USE_POSIX undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 8, <STDIN> line 33. Constant subroutine __USE_POSIX2 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 9, <STDIN> line 33. Constant subroutine __USE_POSIX199309 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 10, <STDIN> line 33. Constant subroutine __USE_POSIX199506 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 11, <STDIN> line 33. Constant subroutine __USE_XOPEN undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 12, <STDIN> line 33. Constant subroutine __USE_XOPEN_EXTENDED undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 13, <STDIN> line 33. Constant subroutine __USE_UNIX98 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 14, <STDIN> line 33. Constant subroutine __USE_LARGEFILE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 16, <STDIN> line 33. Constant subroutine __USE_LARGEFILE64 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 17, <STDIN> line 33. Constant subroutine __USE_FILE_OFFSET64 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 18, <STDIN> line 33. Constant subroutine __USE_BSD undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 19, <STDIN> line 33. Constant subroutine __USE_SVID undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 20, <STDIN> line 33. Constant subroutine __USE_MISC undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 21, <STDIN> line 33. Constant subroutine __USE_GNU undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 22, <STDIN> line 33. Constant subroutine __USE_REENTRANT undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 23, <STDIN> line 33. Constant subroutine _POSIX_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 48, <STDIN> line 33. Constant subroutine _POSIX_C_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 50, <STDIN> line 33. Constant subroutine _XOPEN_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 52, <STDIN> line 33. Constant subroutine _XOPEN_SOURCE_EXTENDED undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 54, <STDIN> line 33. Constant subroutine _LARGEFILE64_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 56, <STDIN> line 33. Constant subroutine _LARGEFILE_SOURCE undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 98, <STDIN> line 33. Constant subroutine __USE_ISOC99 undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 102, <STDIN> line 33. Constant subroutine __GNU_LIBRARY__ undefined at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 147, <STDIN> line 33.
cpan shell -- CPAN exploration and modules installation (v1.7602) ReadLine support enabled
Can't ioctl TIOCGETP: Invalid argument Consider installing Term::ReadKey from CPAN site nearby at http://www.perl.com/CPAN Or use perl -MCPAN -e shell to reach CPAN. Falling back to 'stty'. If you do not want to see this warning, set PERL_READLINE_NOWARN in your environment.
On 9/4/07, Mark Quitoriano markquitoriano@gmail.com wrote:
Hi all im not sure if this is the right mailing list but im using centos anyway. i run CPAN by perl -MCPAN -e shell and got through the first time configuration and after selecting the mirror sites i got this error and i can't get any modules to be installed. I haven't encountered this before and not very familiar with cpan.
CPAN is a horrible way to install software on a centos box, as it completely bypasses the package management system. Because of this, you can end up with unmet dependencies when things are really installed, centos updates to perl may break because cpan updated a core component, etc.
Mostly, just don't do it. Use rpmforge or other 3rd party repositories to install perl modules.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Jim Perrin Sent: Tuesday, September 04, 2007 1:13 PM To: CentOS mailing list Subject: Re: [CentOS] CPAN error
On 9/4/07, Mark Quitoriano markquitoriano@gmail.com wrote:
Hi all im not sure if this is the right mailing list but im using
centos
anyway. i run CPAN by perl -MCPAN -e shell and got through the first
time
configuration and after selecting the mirror sites i got this error
and i
can't get any modules to be installed. I haven't encountered this
before and
not very familiar with cpan.
CPAN is a horrible way to install software on a centos box, as it completely bypasses the package management system. Because of this, you can end up with unmet dependencies when things are really installed, centos updates to perl may break because cpan updated a core component, etc.
Mostly, just don't do it. Use rpmforge or other 3rd party repositories to install perl modules.
On 9/4/07, Dan Dansereau ddansereau@hydropoint.com wrote:
Is this true for adding perl components not in CENTOS?? If so - what is your correct way to add a package ? Dan
Yes. Use rpmforge or kbs for perl modules which aren't included in the base distro. See wiki.centos.org/Repositories for details.