in reply to Re^2: Installing cpanminus in Strawberry Perl on Windows 10
in thread Installing cpanminus in Strawberry Perl on Windows 10

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.

Replies are listed 'Best First'.
Re^4: Installing cpanminus in Strawberry Perl on Windows 10
by les751 (Initiate) on Aug 15, 2017 at 00:37 UTC

    Thank you for all your help; this issue has been resolved! I'm glad that you pointed out that I might not need the 64-bit version. I downloaded the Strawberry 5.24 32-bit version, and successfully installed. Good news, cpanminus was included.

    Thanks also for testing Slic3r perl yourself. As per your suggestion, I uninstalled, redownloaded, and reinstalled Slicer perl, but I was unable to install cpanminus even from inside cpan.

      Your setup isn't even untaring the files it downloads:

      Using Tar:/usr/bin/tar xf "App-cpanminus-1.7043.tar": The system cannot find the path specified

      You're running windows, this isn't a path that exists, tell cpan where tar is, or look at how Strawberry has cpan configured. This 'custom' build of Strawberry called slic3r perl, is only going to muddy the waters IMHO.

      As a side note, you may want to consider using a Linux system for 3D printing, or at least something like octopi. Besides being much easier to setup on linux, a friend was printing some parts for me only for Windows 10 to do an unexpected reboot to install security patches, 2 hours 30 mins into a 2 hour 45 minute print.

      Looking at the paths from your o conf, such as /c/Users/David/.cpan, it looks more like a cygwin configuration for cpan (from what I remember from my few abortive experiences with cygwin). Given the look of that cpan config, I think the reason it worked for me when I installed the Slic3r perl x64 and installed App::cpanminus using cpan was that I have installed a bunch of the GnuWin32 utilities in places like /usr/bin, and they are in my path, so the strangely-configured cpan was still able to do what I meant.

      I agree with ++marto, their custom 64bit Strawberry is muddying things. I'm glad you were able to get it running with the standard 32-bit Strawberry.

      For reference, with a standard instance of (portable) 64bit Strawberry (using berrybrew to install it), the out-of-the box cpan configuration for 5.24.2 x64 looks like the following for me: