in reply to CPAN Errors on install

Perlmonks doesn't need pastebins. Also, what you pasted isn't very diagnostic
Warning: No success on command[/usr/local/bin/perl Makefile.PL]
So Makefile.PL failed somehow, try running it manually to see why/how.

Replies are listed 'Best First'.
Re^2: CPAN Errors on install
by initself (Monk) on Oct 01, 2009 at 00:31 UTC
    When I run perl Makefile.PL from the package directory directly, it creates the makefile just fine. It's only from CPAN that the module does not want to create the makefile.
      Hmmm, I would try turning debugging on
      cpan> o debug all
      I would also try cpanp
        Not sure how to read this. This is from 'install Text::Trim':
        Debug(CPAN,CPAN.pm,370): line[install|Text::Trim] Debug(Shell,Shell.pm,1597,[Shell,Shell.pm,1935,rematein]): pragma[]met +h[install]some[Text::Trim] Debug(Shell,Shell.pm,1638,[Shell,Shell.pm,1935,rematein]): calling exp +andany [Text::Trim] Debug(Shell,Shell.pm,1231,[Shell,Shell.pm,1639,expandany]): s[Text::Tr +im] Debug(Shell,Shell.pm,1253,[Shell,Shell.pm,1243,expand]): type[Module]a +rgs[Text::Trim] Debug(Shell,Shell.pm,1278,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Module]regex[UNDEFINED]command[UNDEFINED] Debug(Shell,Shell.pm,1359,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Module]wantarray[]count m[1] Debug(Shell,Shell.pm,1646,[Shell,Shell.pm,1935,rematein]): Going to te +st against recursion Debug(Shell,Shell.pm,1253,[Module,Module.pm,106,expand]): type[Distrib +ution]args[M/MA/MATTLAW/Text-Trim-1.01.tar.gz] Debug(Shell,Shell.pm,1278,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Distribution]regex[UNDEFINED]command[UNDEFINED] Debug(Shell,Shell.pm,1359,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Distribution]wantarray[]count m[1] Debug(Distribution,Distribution.pm,2741,[Distribution,Distribution.pm, +182,prereq_pm]): ID[M/MA/MATTLAW/Text-Trim-1.01.tar.gz]prereq_pm_dete +cted[0] Debug(Distribution,Distribution.pm,2749,[Distribution,Distribution.pm, +182,prereq_pm]): writemakefile[NO '/usr/local/bin/perl Build.PL ' ret +urned status -1]modulebuild[1] Debug(Queue,Queue.pm,85,[Queue,Queue.pm,76,qpush]): in new All[ Text:: +Trim[c] ] Debug(Shell,Shell.pm,1231,[Shell,Shell.pm,1699,expandany]): s[Text::Tr +im] Debug(Shell,Shell.pm,1253,[Shell,Shell.pm,1243,expand]): type[Module]a +rgs[Text::Trim] Debug(Shell,Shell.pm,1278,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Module]regex[UNDEFINED]command[UNDEFINED] Debug(Shell,Shell.pm,1359,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Module]wantarray[]count m[1] Debug(Shell,Shell.pm,1717,[Shell,Shell.pm,1935,rematein]): s[Text::Tri +m]obj-reqtype[c]q-reqtype[c] Debug(Shell,Shell.pm,1751,[Shell,Shell.pm,1935,rematein]): pragma[]met +h[install]ID[Text::Trim] Running install for module 'Text::Trim' Debug(Module,Module.pm,450,[Module,Module.pm,576,rematein]): dist-reqt +ype[c]self-reqtype[c] Debug(Distribution,Distribution.pm,2263,[Distribution,Distribution.pm, +3263,prefs]): prefs_dir[/root/.cpan/prefs] Debug(Distribution,Distribution.pm,2266,[Distribution,Distribution.pm, +3263,prefs]): prefs[] Running Build for M/MA/MATTLAW/Text-Trim-1.01.tar.gz Debug(Distribution,Distribution.pm,277,[Distribution,Distribution.pm,1 +677,get]): checking goto id[M/MA/MATTLAW/Text-Trim-1.01.tar.gz] Debug(Distribution,Distribution.pm,298,[Distribution,Distribution.pm,1 +677,get]): checking disabled id[M/MA/MATTLAW/Text-Trim-1.01.tar.gz] Has already been unwrapped into directory /root/.cpan/build/Text-Tri +m-1.01-V1pwLM '/usr/local/bin/perl Build.PL ' returned status -1, won't make Running Build test Make had some problems, won't test Running Build install Make had some problems, won't install Debug(Shell,Shell.pm,1777,[Shell,Shell.pm,1935,rematein]): Failed. pra +gma[]meth[install] Debug(Shell,Shell.pm,1253,[Module,Module.pm,52,expand]): type[Distribu +tion]args[M/MA/MATTLAW/Text-Trim-1.01.tar.gz] Debug(Shell,Shell.pm,1278,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Distribution]regex[UNDEFINED]command[UNDEFINED] Debug(Shell,Shell.pm,1359,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Distribution]wantarray[]count m[1] Debug(Shell,Shell.pm,1253,[Module,Module.pm,106,expand]): type[Distrib +ution]args[M/MA/MATTLAW/Text-Trim-1.01.tar.gz] Debug(Shell,Shell.pm,1278,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Distribution]regex[UNDEFINED]command[UNDEFINED] Debug(Shell,Shell.pm,1359,[Shell,Shell.pm,1260,expand_by_method]): cla +ss[CPAN::Distribution]wantarray[]count m[1] Debug(Distribution,Distribution.pm,2741,[Distribution,Distribution.pm, +182,prereq_pm]): ID[M/MA/MATTLAW/Text-Trim-1.01.tar.gz]prereq_pm_dete +cted[0] Debug(Distribution,Distribution.pm,2749,[Distribution,Distribution.pm, +182,prereq_pm]): writemakefile[NO '/usr/local/bin/perl Build.PL ' ret +urned status -1]modulebuild[1] Debug(CPAN,CPAN.pm,691,[Shell,Shell.pm,1046,all_objects]): mgr[CPAN=HA +SH(0x92852e0)] class[CPAN::Distribution]

        cpanp struggled and then left me with Out of Memory!, since the box only has 128k. No idea, man.