Weird. I just did a fresh install of Slic3r's 5.24.1 (64bit). It didn't have cpanm. However, I ran cpan, and within the cpan shell, ran install App::cpanminus, which was successful

C:\Slic3rBerry>cpan Loading internal null logger. Install Log::Log4perl for logging messag +es cpan shell -- CPAN exploration and modules installation (v2.16) Enter 'h' for help. cpan> install App::cpanminus Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Creating database file ... Done! Running install for module 'App::cpanminus' Fetching with LWP: http://cpan.strawberryperl.com/authors/id/M/MI/MIYAGAWA/App-cpanminus- +1.7043.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/M/MI/MIYAGAWA/CHECKSUMS Checksum for C:\SLIC3R~1\cpan\sources\authors\id\M\MI\MIYAGAWA\App-cpa +nminus-1.7043.tar.gz ok Scanning cache C:\SLIC3R~1\cpan\build for sizes DONE 'YAML' not installed, will not store persistent state Configuring M/MI/MIYAGAWA/App-cpanminus-1.7043.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for App::cpanminus Writing MYMETA.yml and MYMETA.json MIYAGAWA/App-cpanminus-1.7043.tar.gz C:\Slic3rBerry\perl\bin\perl.exe Makefile.PL -- OK Running make for M/MI/MIYAGAWA/App-cpanminus-1.7043.tar.gz cp lib/App/cpanminus/fatscript.pm blib\lib\App\cpanminus\fatscript.pm cp lib/App/cpanminus.pm blib\lib\App\cpanminus.pm "C:\Slic3rBerry\perl\bin\perl.exe" -MExtUtils::Command -e cp -- bin/cp +anm blib\script\cpanm pl2bat.bat blib\script\cpanm MIYAGAWA/App-cpanminus-1.7043.tar.gz C:\SLIC3R~1\c\bin\dmake.exe -- OK Running make test "C:\Slic3rBerry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest:: +Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\ +lib', 'blib\arch')" t/*.t t/happy_cpantesters.t .. 1/1 # App::cpanminus/1.7043 t/happy_cpantesters.t .. ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.03 usr + 0.05 sys = 0.08 CPU +) Result: PASS MIYAGAWA/App-cpanminus-1.7043.tar.gz C:\SLIC3R~1\c\bin\dmake.exe test -- OK Running make install Installing C:\SLIC3R~1\perl\site\lib\App\cpanminus.pm Installing C:\SLIC3R~1\perl\site\lib\App\cpanminus\fatscript.pm Installing C:\SLIC3R~1\perl\site\bin\cpanm Installing C:\SLIC3R~1\perl\site\bin\cpanm.bat Appending installation info to C:\SLIC3R~1\perl\lib/perllocal.pod MIYAGAWA/App-cpanminus-1.7043.tar.gz C:\SLIC3R~1\c\bin\dmake.exe install UNINST=1 -- OK

After doing that, I can successfully find and run cpanm:

C:\Slic3rBerry>where cpanm C:\Slic3rBerry\perl\site\bin\cpanm C:\Slic3rBerry\perl\site\bin\cpanm.bat C:\Slic3rBerry>cpanm --version cpanm (App::cpanminus) version 1.7043 (C:\Slic3rBerry\perl\site\bin/cp +anm) perl version 5.024001 (C:\Slic3rBerry\perl\bin\perl.exe) %Config: archname=MSWin32-x64-multi-thread installsitelib=C:\SLIC3R~1\perl\site\lib installsitebin=C:\SLIC3R~1\perl\site\bin sitearchexp=C:\SLIC3R~1\perl\site\lib sitelibexp=C:\SLIC3R~1\perl\site\lib vendorarch=C:\SLIC3R~1\perl\vendor\lib vendorlibexp=C:\SLIC3R~1\perl\vendor\lib archlibexp=C:\SLIC3R~1\perl\lib privlibexp=C:\SLIC3R~1\perl\lib @INC: FatPacked::4779400=HASH(0x48ed88) C:/Slic3rBerry/perl/site/lib C:/Slic3rBerry/perl/vendor/lib C:/Slic3rBerry/perl/lib .

I wonder if something got corrupted in your version of Slic3r's 64-bit Strawberry Perl. You might want to try to uninstall and reinstall, then try to install the cpanm from inside the cpan client (it shouldn't make a difference... but since the steps worked for me, maybe they will for you as well).

If that doesn't work: do you need 64bit? If not, you might follow Slic3r's instructions for the standard 32-bit Strawberry, which does come with cpanm already installed. Given that Slic3r frequently mentions 5.24, and because Strawberry 5.26 changed away from dmake to gmake (which has caused some module installation problems for some people), I'd pick the "Strawberry Perl 5.24.2.1 (32bit)" installer link from Strawberry's main page.)

update: I should point out that for this test, I was on Windows 7, not Windows 10. It might cause different behavior.

update 2: If you still have difficulty, you might be able to ask on the Slic3r issues page for them to bundle cpanm with their custom 5.24.1 64bit -- actually, you might want to ask them to do that anyway, given the difficulties you've already had.


In reply to Re^3: Installing cpanminus in Strawberry Perl on Windows 10 by pryrt
in thread Installing cpanminus in Strawberry Perl on Windows 10 by les751

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.