質問: 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を使用しています。何がうまくいかないかについて何か助けはありますか?
回答: cpanminusのインストールに推奨されるプロセスは次のとおりです :curl -l http://cpanmin.us | perl - --sudo app::cpanminus これを試してみてください、それはまだ私を失敗させませんでした。