in reply to [SOLVED] Cannot install CPAN modules

Did you build your own perl, or is this the 64-bit ubuntu perl? What does perl -V show? FWIW, I have no problems installing modules on 64-bit ubuntu:
cpan[1]> test List::MoreUtils CPAN: Storable loaded ok (v2.15) Going to read /home/ysth/.cpan/Metadata Database was generated on Wed, 11 Jun 2008 15:06:57 GMT CPAN: LWP::UserAgent loaded ok (v2.036) CPAN: Time::HiRes loaded ok (v1.86) I would like to connect to one of the following sites to get 'authors/ +01mailrc.txt.gz': http://www.perl.org/CPAN/ ftp://ftp.perl.org/pub/CPAN/ Is it OK to try to connect to the Internet? [yes] Fetching with LWP: http://www.perl.org/CPAN/authors/01mailrc.txt.gz CPAN: YAML loaded ok (v0.62) Going to read /home/ysth/.cpan/sources/authors/01mailrc.txt.gz ...................................................................... +......DONE Fetching with LWP: http://www.perl.org/CPAN/modules/02packages.details.txt.gz Going to read /home/ysth/.cpan/sources/modules/02packages.details.txt. +gz Database was generated on Sun, 03 Aug 2008 19:02:47 GMT ...................................................................... +......DONE Fetching with LWP: http://www.perl.org/CPAN/modules/03modlist.data.gz Going to read /home/ysth/.cpan/sources/modules/03modlist.data.gz ...................................................................... +......DONE Going to write /home/ysth/.cpan/Metadata Running test for module 'List::MoreUtils' Running make for V/VP/VPARSEVAL/List-MoreUtils-0.22.tar.gz Fetching with LWP: http://www.perl.org/CPAN/authors/id/V/VP/VPARSEVAL/List-MoreUtils-0. +22.tar.gz CPAN: checksum security checks disabled because Digest::SHA not inst +alled. Please consider installing the Digest::SHA module. Scanning cache /home/ysth/.cpan/build for sizes .....................................................................- +------DONE DEL(1/1): /home/ysth/.cpan/build/Test-Harness-3.10 List-MoreUtils-0.22/ List-MoreUtils-0.22/Changes List-MoreUtils-0.22/dhash.h List-MoreUtils-0.22/lib/ List-MoreUtils-0.22/lib/List/ List-MoreUtils-0.22/lib/List/MoreUtils.pm List-MoreUtils-0.22/Makefile.PL List-MoreUtils-0.22/MANIFEST List-MoreUtils-0.22/META.yml List-MoreUtils-0.22/MoreUtils.xs List-MoreUtils-0.22/multicall.h List-MoreUtils-0.22/README List-MoreUtils-0.22/t/ List-MoreUtils-0.22/t/0_pod.t List-MoreUtils-0.22/t/0_pod_coverage.t List-MoreUtils-0.22/t/List-MoreUtils-pp.t List-MoreUtils-0.22/t/List-MoreUtils.t CPAN: File::Temp loaded ok (v0.20) CPAN.pm: Going to build V/VP/VPARSEVAL/List-MoreUtils-0.22.tar.gz Checking if your kit is complete... Looks good Writing Makefile for List::MoreUtils Testing if you have a C compiler cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-s +trict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE +_OFFSET_BITS=64 -O2 -DVERSION=\"0.22\" -DXS_VERSION=\"0.22\" -fPIC +"-I/usr/lib/perl/5.8/CORE" -DPERL_EXT test.c cp lib/List/MoreUtils.pm blib/lib/List/MoreUtils.pm /usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/pe +rl/5.8/ExtUtils/typemap MoreUtils.xs > MoreUtils.xsc && mv MoreUtils +.xsc MoreUtils.c cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-s +trict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE +_OFFSET_BITS=64 -O2 -DVERSION=\"0.22\" -DXS_VERSION=\"0.22\" -fPIC +"-I/usr/lib/perl/5.8/CORE" -DPERL_EXT MoreUtils.c Running Mkbootstrap for List::MoreUtils () chmod 644 MoreUtils.bs rm -f blib/arch/auto/List/MoreUtils/MoreUtils.so cc -shared -L/usr/local/lib MoreUtils.o -o blib/arch/auto/List/MoreU +tils/MoreUtils.so \ \ chmod 755 blib/arch/auto/List/MoreUtils/MoreUtils.so cp MoreUtils.bs blib/arch/auto/List/MoreUtils/MoreUtils.bs chmod 644 blib/arch/auto/List/MoreUtils/MoreUtils.bs Manifying blib/man3/List::MoreUtils.3pm VPARSEVAL/List-MoreUtils-0.22.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/0_pod..................ok t/0_pod_coverage.........ok t/List-MoreUtils-pp......ok t/List-MoreUtils.........ok All tests successful. Files=4, Tests=264, 1 wallclock secs ( 0.04 usr 0.01 sys + 0.90 cus +r 0.15 csys = 1.10 CPU) Result: PASS VPARSEVAL/List-MoreUtils-0.22.tar.gz /usr/bin/make test -- OK

Replies are listed 'Best First'.
Re^2: Cannot install CPAN modules
by azredwing (Sexton) on Aug 04, 2008 at 00:51 UTC
    Here's the output of perl -V:

    Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=linux, osvers=2.6.15.7, archname=x86_64-linux-gnu-thread-mu +lti uname='linux yellow 2.6.15.7 #1 smp sun sep 23 13:51:52 utc 2007 x +86_64 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dccc +dlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr -Dprivlib=/us +r/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8 -Dvendorprefix=/usr -Dve +ndorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/us +r/local -Dsitelib=/usr/local/share/perl/5.8.8 -Dsitearch=/usr/local/l +ib/perl/5.8.8 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/ +man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/m +an3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs + -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Duseshrplib -Dlibperl=libperl. +so.5.8.8 -Dd_dosuid -des' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemulti +plicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS +-DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE +_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN +-fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.2.3 20071123 (prerelease) (Ubuntu 4.2. +2-3ubuntu4)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', + lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt perllibs=-ldl -lm -lpthread -lc -lcrypt libc=/lib/libc-2.6.1.so, so=so, useshrplib=true, libperl=libperl.s +o.5.8.8 gnulibc_version='2.6.1' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_64_BIT_ +ALL USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API Built under linux Compiled at Nov 27 2007 10:56:40 @INC: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .

    This is the Perl that came with Ubuntu64. Oddly enough, I am running a 64 bit desktop and that works fine; just the 64 bit notebook is breaking...

      Try:

      cpan WeakRef Task::Weaken

      Update: Just a suggestion because bash will vehemently complain if you don't have the right gcc installed..