Perl CPAN error

Posted on 2006-04-24
Last Modified: 2008-01-09
Any idea how do i fix this?

cpan> install CDB_File

Trying with "/usr/local/bin/lynx -source" to get

gzip: /root/.cpan/sources/authors/01mailrc.txt: not in gzip format
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz

Trying with "/usr/local/bin/lynx -source" to get

gzip: /root/.cpan/sources/modules/02packages.details.txt: not in gzip format
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Scanning cache /root/.cpan/build for sizes

  There's a new version (v1.87) available!
  You might want to try
    install Bundle::CPAN
    reload cpan
  without quitting the current session. It should be a seamless upgrade
  while we are running...

Trying with "/usr/local/bin/lynx -source" to get

gzip: /root/.cpan/sources/modules/ not in gzip format
Going to read /root/.cpan/sources/modules/
Running make for M/MS/MSERGEANT/CDB_File-0.94.tar.gz

Trying with "/usr/local/bin/lynx -source" to get

  CPAN: MD5 security checks disabled because MD5 not installed.
  Please consider installing the MD5 module.

CDB_File-0.94/typemap Going to build M/MS/MSERGEANT/CDB_File-0.94.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for CDB_File
mkdir blib
mkdir blib/lib
cp blib/lib/
cp blib/lib/
/usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 /usr/libdata/perl/5.00503/ExtUtils/xsubpp  -typemap /usr/libdata/perl/5.00503/ExtUtils/typemap -typemap typemap CDB_File.xs >xstmp.c && mv xstmp.c CDB_File.c
cc -c        -DVERSION=\"0.94\"  -DXS_VERSION=\"0.94\" -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE  CDB_File.c
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/CDB_File
Running Mkbootstrap for CDB_File ()
chmod 644
cc -o blib/arch/auto/CDB_File/  -Wl,-E -shared -lperl -lm CDB_File.o    
chmod 755 blib/arch/auto/CDB_File/
cp blib/arch/auto/CDB_File/
chmod 644 blib/arch/auto/CDB_File/
mkdir blib/lib/auto/CDB_File
mkdir blib/man3
Manifying blib/man3/CDB_File.3
  /usr/bin/make  -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/01main............Can't locate auto/CDB_File/ in @INC (@INC contains: blib/arch blib/lib /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503) at t/01main.t line 9
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-112
        Failed 112/112 tests, 0.00% okay
t/02last............Can't load 'blib/arch/auto/CDB_File/' for module CDB_File: blib/arch/auto/CDB_File/ Undefined symbol "Perl_report_uninit" at /usr/libdata/perl/5.00503/ line 169.

 at t/02last.t line 3
BEGIN failed--compilation aborted at t/02last.t line 3.
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-18
        Failed 18/18 tests, 0.00% okay
Failed Test  Status Wstat Total Fail  Failed  List of failed
t/01main.t        2   512   112  112 100.00%  1-112
t/02last.t      255 65280    18   18 100.00%  1-18
Failed 2/2 test scripts, 0.00% okay. 130/130 subtests failed, 0.00% okay.
*** Error code 2

Stop in /root/.cpan/build/CDB_File-0.94.
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

cpan> quit
Question by:jedistar
    LVL 51

    Expert Comment

    sounds like you got a corrupted file
    try again, and/or try with another version
    LVL 4

    Accepted Solution

    I would suggest to update your CPAN first as told at the beginning of your message with:
    > install Bundle::CPAN
    > reload cpan

    After that, exit from CPAN, remove any files under/root/.cpan/* and restart CPAN. It will re-get any files and shoud help.

    You can always force an install of a module in CPAN (even if the tests fails) with the command:
    > force install CDB_File
    LVL 51

    Expert Comment

    > > force install CDB_File
    not a good suggestion if   make test  failed ...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now