it-swarm-ja.com

Mac OSXにcpanminusをインストールする際のエラー

Webサイトにあるコマンドを使用して、ターミナルからcpanminusをインストールしようとしています。

Sudo cpan App::cpanminus

ただし、次のエラーが発生します。

N01-0545---MB:CPAN-1.9800 sucadmin$ Sudo cpan App::cpanminus
Password:
Going to read '/Users/sucadmin/.cpan/Metadata'
  Database was generated on Tue, 29 Jan 2013 00:29:02 GMT
Running install for module 'App::cpanminus'
Running make for M/MI/MIYAGAWA/App-cpanminus-1.5019.tar.gz
Checksum for /Users/sucadmin/.cpan/sources/authors/id/M/MI/MIYAGAWA/App-cpanminus-    1.5019.tar.gz ok

  CPAN.pm: Going to build M/MI/MIYAGAWA/App-cpanminus-1.5019.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for App::cpanminus
make: *** No rule to make target `/System/Library/Perl/5.12/darwin-thread-multi-    2level/CORE/config.h', needed by `Makefile'.  Stop.
  MIYAGAWA/App-cpanminus-1.5019.tar.gz
  /usr/bin/make -- NOT OK
'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

に基づいて この投稿 私は彼らが提案したことを試し、次のようになりました:

cpanm (App::cpanminus) 1.5020 on Perl 5.012003 built for darwin-thread-multi-2level
Work directory is /Users/sucadmin/.cpanm/work/1359493476.3491
You have make /usr/bin/make
You have LWP 5.837
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching App::cpanminus on cpanmetadb ...
--> Working on App::cpanminus
Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.5020.tar.gz
-> OK
Unpacking App-cpanminus-1.5020.tar.gz
Entering App-cpanminus-1.5020
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.56)
Configuring App-cpanminus-1.5020
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for App::cpanminus
-> OK
Finding PREREQ from Makefile ...
Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.56)
Checking if you have Module::Build 0.36 ... Yes (0.3603)
Checking if you have ExtUtils::Install 1.46 ... Yes (1.55)
Building and testing App-cpanminus-1.5020
make: *** No rule to make target `/System/Library/Perl/5.12/darwin-thread-multi-        2level/CORE/config.h', needed by `Makefile'.  Stop.
-> FAIL Installing App::cpanminus failed. See /Users/sucadmin/.cpanm/build.log for     details.

OSXバージョン10.7.5とgccバージョン4.2.1を使用しています。

何がうまくいかないかについて何か助けはありますか?

4
lilyrobin

Cpanminusのインストールに推奨されるプロセスは次のとおりです

curl -L http://cpanmin.us | Perl - --Sudo App::cpanminus

これを試してみてください、それはまだ私を失敗させませんでした。

2
smonff