Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

CPANPLUS (cpanp) problems, while CPAN works?

by HelenCr (Monk)
on Jul 02, 2013 at 14:51 UTC ( [id://1042034]=perlquestion: print w/replies, xml ) Need Help??

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

Dear esteemed Perl Monks

There is a problem with cpanp on one of our PC's. I hope you can help with locating the problem.

Until about 6 months ago, we have been running Strawberry Perl 5.14.2 on Windows XP (SP 3) and Windows 7, and been using cpanp ( = CPANPLUS) for module installations. No problems.

Then I have installed Citrus Perl 5.16.3 on all systems, and initially cpanp complained that there is no "make" in the PATH. Here is the old PATH (newlines inserted for readability):

PATH=D:\MyPrograms\System\Citrus\perl\site\bin; D:\MyPrograms\System\Citrus\perl\vendor\bin; D:\MyPrograms\System\Citrus\perl\bin; D:\MyPrograms\System\Citrus\perl\mingw32\bin; D:\MyPrograms\System\mingw32\bin; C:\WINDOWS\system32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\ProgramFiles\ATI Technologies\ATI.ACE\Core-Static; c:\Program Files\Common Files\Roxio Shared\DLLShared\; D:\My Programs\Media\Imaging\ImageMagick-6.7.3-Q16; C:\Program Files\Microsoft SQL Server\100\Tools\Binn\; C:\Program Files\Microsoft SQL Server\100\DTS\Binn\; C:\WINDOWS\system32\WindowsPowerShell\v1.0; C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\I +DE\

I have then added (on both machines), to the PATH, a reference to the '\bin' directory of the StrawberryPerl installation (which contains  dmake.exe); namely  D:\MyPrograms\System\StrawberryPerl\c\bin;

Here is the new PATH in full:

PATH=D:\MyPrograms\System\Citrus\perl\site\bin; D:\MyPrograms\System\Citrus\perl\vendor\bin; D:\MyPrograms\System\Citrus\perl\bin; D:\MyPrograms\System\Citrus\perl\mingw32\bin; D:\MyPrograms\System\mingw32\bin; C:\WINDOWS\system32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; D:\MyPrograms\System\StrawberryPerl\c\bin; C:\ProgramFiles\ATI Technologies\ATI.ACE\Core-Static; c:\Program Files\Common Files\Roxio Shared\DLLShared\; D:\My Programs\Media\Imaging\ImageMagick-6.7.3-Q16; C:\Program Files\Microsoft SQL Server\100\Tools\Binn\; C:\Program Files\Microsoft SQL Server\100\DTS\Binn\; C:\WINDOWS\system32\WindowsPowerShell\v1.0; C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\I +DE\
As a result, cpanp now runs fine on the Windows 7 machine; but on the Win XP machine, it still breaks, saying:

You do not have 'make' in your path -- 'CPANPLUS::Dist::MM' not available.

Here is an example of the the full listing (trying to install Text::CSV): (Note: cpanp has the prompt:  "CPAN Terminal>"):

CPAN Terminal>installing Text::CSV (1.32) [ERROR] You do not have 'make' in your path -- 'CPANPLUS::Dist::MM' no +t available Please check your config entry for 'make' [ERROR] Format 'CPANPLUS::Dist::MM' is not available [ERROR] Unable to create a new distribution object for 'Text::CSV' -- +cannot continue *** Install log written to: C:\Documents and Settings\User\Application Data\.cpanplus\install-lo +gs\Text-CSV-1.32-1372579867.log Error installing 'Text::CSV' Problem installing one or more modules *** You can view the complete error buffer by pressing 'p' *** CPAN Terminal>q

What to do?

Interestingly, installing using CPAN does work fine with no complaints:

D:\MyPrograms\Perl>cpan Text::CSV Reading 'D:\MyPrograms\System\Citrus\perl\cpan\Metadata' Database was generated on Tue, 18 Jun 2013 06:29:03 GMT Fetching with LWP: http://www.perl.org/CPAN/authors/01mailrc.txt.gz Reading 'D:\MyPrograms\System\Citrus\perl\cpan\sources\authors\01mailr +c.txt.gz' ...................................................................... +......DONE Fetching with LWP: http://www.perl.org/CPAN/modules/02packages.details.txt.gz Reading 'D:\MyPrograms\System\Citrus\perl\cpan\sources\modules\02packa +ges.details.txt.gz' Database was generated on Sun, 30 Jun 2013 07:41:02 GMT .............. New CPAN.pm version (v2.00) available. [Currently running version is v1.9800] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the +current session. ..............................................................DONE Fetching with LWP: http://www.perl.org/CPAN/modules/03modlist.data.gz Reading 'D:\MyPrograms\System\Citrus\perl\cpan\sources\modules\03modli +st.data.gz' ...................................................................... +......DONE Writing D:\MyPrograms\System\Citrus\perl\cpan\Metadata Running install for module 'Text::CSV' Running make for M/MA/MAKAMAKA/Text-CSV-1.32.tar.gz Fetching with LWP: http://www.perl.org/CPAN/authors/id/M/MA/MAKAMAKA/Text-CSV-1.32.tar.gz Fetching with LWP: http://www.perl.org/CPAN/authors/id/M/MA/MAKAMAKA/CHECKSUMS Checksum for D:\MyPrograms\System\Citrus\perl\cpan\sources\authors\id\ +M\MA\MAKAMAKA\Text-CSV-1.32.tar.gz ok CPAN.pm: Building M/MA/MAKAMAKA/Text-CSV-1.32.tar.gz Welcome to Text::CSV (v.1.32) ============================= Your Text::CSV_XS version is 0.97. If you install v.0.99, Text::CSV wi +ll work faster. Checking if your kit is complete... Looks good Writing Makefile for Text::CSV Writing MYMETA.yml and MYMETA.json cp lib/Text/CSV_PP.pm blib\lib\Text\CSV_PP.pm cp lib/Text/CSV.pm blib\lib\Text\CSV.pm MAKAMAKA/Text-CSV-1.32.tar.gz dmake.exe -- OK Running make test D:\MyPrograms\System\Citrus\perl\bin\perl.exe "-MExtUtils::Command::MM +" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/00_pod.t ........ skipped: Test::Pod 1.00 required for testing POD t/10_base.t ....... ok t/12_acc.t ........ ok ... etc t/81_subclass.t ... ok All tests successful. Files=24, Tests=13674, 18 wallclock secs ( 1.67 usr + 0.22 sys = 1.8 +9 CPU) Result: PASS MAKAMAKA/Text-CSV-1.32.tar.gz dmake.exe test -- OK Running make install Installing D:\MyPrograms\System\Citrus\perl\site\lib\Text\CSV.pm Installing D:\MyPrograms\System\Citrus\perl\site\lib\Text\CSV_PP.pm Appending installation info to D:\MyPrograms\System\Citrus\perl\lib/pe +rllocal.pod MAKAMAKA/Text-CSV-1.32.tar.gz dmake.exe install -- OK

Note that, like I said, dmake is in the PATH: for example (in a CMD window):

D:\MyPrograms\Perl>dmake dmake: Error: -- No target D:\MyPrograms\Perl>

which positively shows that  dmake.exe is found in the PATH.

Your help will be appreciated.

Many TIA - Helen

Replies are listed 'Best First'.
Re: CPANPLUS (cpanp) problems, while CPAN works? (imagination)
by Anonymous Monk on Jul 02, 2013 at 15:18 UTC

    What to do?

    :)

    I imagine first you should check your CPANPLUS configuration, esp make option

    I imagine you might upgrade CPANPLUS

    I imagine you might Clean %PATH% some more, say use shortnames if you've got them, maybe also remove trailing slashes

    I can also imagine reporting this issue if it turns out not to be misconfiguration

    I can also imagine reporting this oddly misformatted error message -- which doesn't even mention the name of this 'make' program

    I imagine

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1042034]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-03-29 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found