LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem in upgrading CPAN (http://www.linuxquestions.org/questions/linux-newbie-8/problem-in-upgrading-cpan-918683/)

anjumanu321 12-14-2011 08:10 AM

Problem in upgrading CPAN
 
Hello,

I am trying to upgrade CPAN and getting the following errors.
Please suggest how to proceed.


" CPAN.pm: Going to build A/AN/ANDK/CPAN-1.9800.tar.gz

Importing PAUSE public key into your GnuPG keychain... done!
(You may wish to trust it locally with 'gpg --lsign-key 450F89EC')
Checking if your kit is complete...
Looks good
Writing Makefile for CPAN
Could not read '/root/.cpan/build/CPAN-1.9800-qmv5vY/META.yml'. Falling back to other methods to determine prerequisites
Can't exec "make": No such file or directory at /usr/share/perl/5.10/CPAN/Distribution.pm line 2003.
ANDK/CPAN-1.9800.tar.gz
make -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
ANDK/CPAN-1.9800.tar.gz : make NO "


fyi, I am using Debian Squeeze.


Thanks in advance,

---
Anji

xxx_anuj_xxx 12-14-2011 08:13 AM

Do you have package make installed?

AwesomeMachine 12-14-2011 08:16 AM

Try this

aptitude install libyaml-appconfig-perl

Cedrik 12-14-2011 08:19 AM

Code:

$ su -
# cpan
# cpan> install Bundle::CPAN
# cpan> reload cpan
# cpan> exit


anjumanu321 12-14-2011 08:40 AM

Quote:

Originally Posted by xxx_anuj_xxx (Post 4549645)
Do you have package make installed?

Now I have installed MAKE package :)

anjumanu321 12-14-2011 08:52 AM

Quote:

Originally Posted by Cedrik (Post 4549649)
Code:

$ su -
# cpan
# cpan> install Bundle::CPAN
# cpan> reload cpan
# cpan> exit


Successfully upgraded but with few errors,do I need to worry about these?

"Failed during this command:
ANDYA/Test-Harness-3.23.tar.gz : make_test NO
GBARR/Scalar-List-Utils-1.23.tar.gz : make NO
SMUELLER/PathTools-3.33.tar.gz : make NO
SMUELLER/Data-Dumper-2.131.tar.gz : make NO
MSHELOR/Digest-SHA-5.70.tar.gz : make NO
PMQS/Compress-Raw-Bzip2-2.045.tar.gz : make NO
PMQS/Compress-Raw-Zlib-2.045.tar.gz : make NO
JSTOWE/TermReadKey-2.30.tar.gz : make NO
PMQS/IO-Compress-2.045.tar.gz : make_test NO "



Also, when I am trying to install YAML getting the following errors

perl -MCPAN -e 'install PERL::YAML'

"CPAN: Storable loaded ok (v2.20)
Reading '/root/.cpan/Metadata'
Database was generated on Wed, 14 Dec 2011 12:27:57 GMT
Warning: Cannot install PERL::YAML, don't know what it is.
Try the command

i /PERL::YAML/

to find objects with matching identifiers.
CPAN: Time::HiRes loaded ok (v1.9719)"

Cedrik 12-14-2011 09:06 AM

Do you have all development tools installed, gcc, g++, libc-dev etc... ?

I don't run debian, but it seems development tools are combined in one package:
'build-essential'

You may install them all at once with: apt-get install build-essential
but again I don't know debian, so...

anjumanu321 12-15-2011 09:10 AM

Quote:

Originally Posted by Cedrik (Post 4549671)
Do you have all development tools installed, gcc, g++, libc-dev etc... ?

I don't run debian, but it seems development tools are combined in one package:
'build-essential'

You may install them all at once with: apt-get install build-essential
but again I don't know debian, so...

Thanks for all your help guys.I have successfully upgraded CPAN. :)


All times are GMT -5. The time now is 10:17 AM.