Hi, I have trouble with downloading and installing cpan modules. I cannot find a solution since I do not understand my problem.
Basic info:
UNIX, on mac os x 10.6.8 and running the terminal for command line.
v5.10.0 built for darwin-thread-multi-2level

Following guidance on the cpan site, I tried to first install cpanminus :
miya-saiko-no-iMac:~ arend$ cpan App::cpanminus
CPAN: Storable loaded ok (v2.18) Going to read /Users/arend/.cpan/Metadata Database was generated on Tue, 08 Jan 2013 07:07:36 GMT Running install for module 'App::cpanminus' Running make for M/MI/MIYAGAWA/App-cpanminus-1.5019.tar.gz CPAN: Digest::SHA loaded ok (v5.45) CPAN: Compress::Zlib loaded ok (v2.008) Checksum for /Users/arend/.cpan/sources/authors/id/M/MI/MIYAGAWA/App-c +panminus-1.5019.tar.gz ok CPAN: Archive::Tar loaded ok (v1.38) App-cpanminus-1.5019/ App-cpanminus-1.5019/bin/ App-cpanminus-1.5019/Changes App-cpanminus-1.5019/lib/ App-cpanminus-1.5019/Makefile.PL App-cpanminus-1.5019/MANIFEST App-cpanminus-1.5019/META.json App-cpanminus-1.5019/META.yml App-cpanminus-1.5019/README App-cpanminus-1.5019/t/ App-cpanminus-1.5019/t/happy_cpantesters.t App-cpanminus-1.5019/lib/App/ App-cpanminus-1.5019/lib/App/cpanminus.pm App-cpanminus-1.5019/bin/cpanm CPAN: File::Temp loaded ok (v0.18)
first trouble:
CPAN.pm: Going to build M/MI/MIYAGAWA/App-cpanminus-1.5019.tar.gz Checking if your kit is complete... Looks good Warning: prerequisite ExtUtils::Install 1.46 not found. We have 1.44. Warning: prerequisite Module::Build 0.36 not found. We have 0.280801. Writing Makefile for App::cpanminus Could not read '/Users/arend/.cpan/build/App-cpanminus-1.5019-wGrBPa/M +ETA.yml'. Falling back to other methods to determine prerequisites ---- Unsatisfied dependencies detected during ---- ---- MIYAGAWA/App-cpanminus-1.5019.tar.gz ---- Module::Build [requires] ExtUtils::Install [requires] Shall I follow them and prepend them to the queue of modules we are processing right now? [yes]
Selecting "yes":
Shall I follow them and prepend them to the queue of modules we are processing right now? [yes]
results in more and more demands for necessary modules that if "followed" by selecting "yes" repeatedly, finally end with:
CPAN.pm: Going to build Y/YV/YVES/ExtUtils-Install-1.54.tar.gz Checking if your kit is complete... Looks good Writing Makefile for ExtUtils::Install Could not read '/Users/arend/.cpan/build/ExtUtils-Install-1.54-Zdx4FY/ +META.yml'. Falling back to other methods to determine prerequisites make: *** No rule to make target `/System/Library/Perl/5.10.0/darwin-t +hread-multi-2level/CORE/config.h', needed by `Makefile'. Stop. YVES/ExtUtils-Install-1.54.tar.gz make -- NOT OK Warning (usually harmless): 'YAML' not installed, will not store persi +stent state Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Running make for M/MI/MIYAGAWA/App-cpanminus-1.5019.tar.gz Has already been unwrapped into directory /Users/arend/.cpan/build/A +pp-cpanminus-1.5019-XCFbKl CPAN.pm: Going to build M/MI/MIYAGAWA/App-cpanminus-1.5019.tar.gz Warning: Prerequisite 'ExtUtils::Install => 1.46' for 'M/MI/MIYAGAWA/A +pp-cpanminus-1.5019.tar.gz' failed when processing 'Y/YV/YVES/ExtUtil +s-Install-1.54.tar.gz' with 'make => NO'. Continuing, but chances to +succeed are limited. Warning: Prerequisite 'Module::Build => 0.36' for 'M/MI/MIYAGAWA/App-c +panminus-1.5019.tar.gz' failed when processing 'L/LE/LEONT/Module-Bui +ld-0.4003.tar.gz' with 'make => NO'. Continuing, but chances to succe +ed are limited. make: *** No rule to make target `/System/Library/Perl/5.10.0/darwin-t +hread-multi-2level/CORE/config.h', needed by `Makefile'. Stop. MIYAGAWA/App-cpanminus-1.5019.tar.gz make -- NOT OK Warning (usually harmless): 'YAML' not installed, will not store persi +stent state Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Could not read '/Users/arend/.cpan/build/ExtUtils-ParseXS-3.18-6oCmHR/ +META.yml'. Falling back to other methods to determine prerequisites miya-saiko-no-iMac:~ arend$
Does anyone have an idea? Since ExtUtils is not by far the only module in the wrong version I wonder if there is something wrong with the general perl installation?


Ok, it seems to have to do something with installation on mac os x....will post a new thread on this soon when I know what to ask

In reply to cpan trouble, where to start? by PerlPeer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.