http://qs1969.pair.com?node_id=1103030

ihopnavajo has asked for the wisdom of the Perl Monks concerning the following question:

So all of my module install attempts are failing and I'm about to tear my hair out trying to figure out why. Below is the log. What the hell is going on? I uninstalled dwimperl, deleted all perl and cpan(m) related directories I could find hoping that whatever I screwed up along the way would be returned to default. I've reinstalled cpan. I'm thinking that at one point in time I manually moved my perl interpreter to my c:\perlscripts directory because, everytime I run cpan, it puts the blib directory (where it's apparently trying to install the modules to) in c:\perlscripts, even though everything else perl related is in c:\dwimperl. Please help. This was bad enough before but now that I removed everything, all the modules I had installed before are gone and none of my scripts will run. Oh, and please help in layman terms. When it comes to coding, all the resources I encounter online are helpful and make sense to me. However, when it comes to CONFIGURING perl, all the help pages seem to think I'm some expert computer science wizard who knows how to do everything, just not with perl. Thanks

c:\perlscripts>cpan App::cpanminus CPAN: CPAN::SQLite loaded ok (v0.202) Database was generated on Mon, 06 Oct 2014 21:43:18 GMT Running install for module 'App::cpanminus' Running make for M/MI/MIYAGAWA/App-cpanminus-1.7012.tar.gz CPAN: Digest::SHA loaded ok (v5.63) CPAN: Compress::Zlib loaded ok (v2.042) Checksum for C:\Dwimperl\cpan\sources\authors\id\M\MI\MIYAGAWA\App-cpa +nminus-1.7 012.tar.gz ok CPAN: Archive::Tar loaded ok (v1.80) CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4401) CPAN: CPAN::Meta loaded ok (v2.120351) CPAN: Module::CoreList loaded ok (v2.57) CPAN.pm: Building M/MI/MIYAGAWA/App-cpanminus-1.7012.tar.gz Checking if your kit is complete... Looks good Writing Makefile for App::cpanminus Writing MYMETA.yml and MYMETA.json !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Cannot copy 'lib/App/cpanminus/fatscript.pm' to 'blib\lib\App\c +panminus\f atscript.pm': No such file or directory !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at -e line 1 dmake.EXE: Error code 130, while making 'pm_to_blib' MIYAGAWA/App-cpanminus-1.7012.tar.gz C:\Dwimperl\c\bin\dmake.EXE -- NOT OK CPAN: YAML loaded ok (v0.77) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible c:\perlscripts>cpanm String::Similarity --> Working on String::Similarity Fetching http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/String-S +imilarity- 1.04.tar.gz ... OK Configuring String-Similarity-1.04 ... OK Building and testing String-Similarity-1.04 ... FAIL ! Installing String::Similarity failed. See \.cpanm\build.log for deta +ils. c:\perlscripts>cpanm B::generate ! Finding B::generate on cpanmetadb failed. ! Finding B::generate on search.cpan.org failed. ! Finding B::generate () on mirror http://search.cpan.org/CPAN failed. ! Couldn't find module or a distribution B::generate () c:\perlscripts>cpan App::cpanminus CPAN: CPAN::SQLite loaded ok (v0.202) Database was generated on Mon, 06 Oct 2014 21:43:18 GMT Running install for module 'App::cpanminus' Running make for M/MI/MIYAGAWA/App-cpanminus-1.7012.tar.gz CPAN: Digest::SHA loaded ok (v5.63) CPAN: Compress::Zlib loaded ok (v2.042) Checksum for C:\Dwimperl\cpan\sources\authors\id\M\MI\MIYAGAWA\App-cpa +nminus-1.7 012.tar.gz ok CPAN: Archive::Tar loaded ok (v1.80) CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4401) CPAN: CPAN::Meta loaded ok (v2.120351) CPAN: Module::CoreList loaded ok (v2.57) CPAN.pm: Building M/MI/MIYAGAWA/App-cpanminus-1.7012.tar.gz Checking if your kit is complete... Looks good Writing Makefile for App::cpanminus Writing MYMETA.yml and MYMETA.json !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Cannot copy 'lib/App/cpanminus/fatscript.pm' to 'blib\lib\App\c +panminus\f atscript.pm': No such file or directory !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at -e line 1 dmake.EXE: Error code 130, while making 'pm_to_blib' MIYAGAWA/App-cpanminus-1.7012.tar.gz C:\Dwimperl\c\bin\dmake.EXE -- NOT OK CPAN: YAML loaded ok (v0.77) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible

Replies are listed 'Best First'.
Re: Can't install any modules
by Anonymous Monk on Oct 06, 2014 at 23:28 UTC

    Uninstall dwimperl by any means you know (add remove programs, remove anything dwimperl from any registry entries, remove the directory dwimperl)

    Go to http://strawberryperl.com/ and install something recent. If you think you might move the directory where perl is installed get the "portable" version

    Install strawberryperl and then use cpan as usual, to install cpanm....

      Still not working. Is there some root directory I could go to change where it wants to set up this 'blib' directory?

        Still not working.

        That is not exactly possible :) You need to provide more details.