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

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.

Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\Users\David>perl -V Summary of my perl5 (revision 5 version 24 subversion 1) configuration +: Platform: osname=MSWin32, osvers=10.0, archname=MSWin32-x64-multi-thread uname='Win32 strawberry-perl 5.24.1.4 #1 Sun Mar 26 22:24:56 2017 +x64' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL +_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv + -fno-strict-aliasing -mms-bitfields', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='6.3.0', gccosandvers='' intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678 +, doublekind=3 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1 +6, longdblkind=3 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='lo +ng long', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++', ldflags ='-s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~ +1\c\lib"' libpth=C:\STRAWB~1\c\lib C:\STRAWB~1\c\x86_64-w64-mingw32\lib C:\S +TRAWB~1\c\lib\gcc\x86_64-w64-mingw32\6.3.0 libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 +-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -l +mpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdl +g32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_3 +2 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 libc=, so=dll, useshrplib=true, libperl=libperl524.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=xs.dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"C:\STRAWB~1\perl\lib\CORE" +-L"C:\STRAWB~1\c\lib"' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT +_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF Built under MSWin32 Compiled at Mar 26 2017 22:29:51 @INC: C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib . C:\Users\David>cpanm 'cpanm' is not recognized as an internal or external command, operable program or batch file. C:\Users\David>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[1]> install App::cpanminus Reading '\c\Users\David\.cpan\Metadata' Database was generated on Sat, 12 Aug 2017 01:17:02 GMT Running install for module 'App::cpanminus' Checksum for \c\Users\David\.cpan\sources\authors\id\M\MI\MIYAGAWA\App +-cpanminus-1.7043.tar.gz ok Scanning cache /c/Users/David/.cpan/build for sizes ...................................................................... +......DONE The system cannot find the path specified. Uncompressed \c\Users\David\.cpan\sources\authors\id\M\MI\MIYAGAWA\App +-cpanminus-1.7043.tar.gz successfully Using Tar:/usr/bin/tar xf "App-cpanminus-1.7043.tar": The system cannot find the path specified. Couldn't untar App-cpanminus-1.7043.tar: child exited with value 1 'YAML' not installed, will not store persistent state MIYAGAWA/App-cpanminus-1.7043.tar.gz Had problems unarchiving. Please build manually Failed during this command: MIYAGAWA/App-cpanminus-1.7043.tar.gz : unwrapped NO -- untar +failed + + cpan[2]> o conf $CPAN::Config options from C:\Users\David\.cpan/CPAN/MyConfig.pm: commit [Commit changes to disk] defaults [Reload defaults from disk] help [Short help about 'o conf' usage] init [Interactive setting of all options] applypatch [] auto_commit [0] build_cache [100] build_dir [/c/Users/David/.cpan/build] build_dir_reuse [0] build_requires_install_policy [yes] bzip2 [/mingw64/bin/bzip2] cache_metadata [1] check_sigs [0] cleanup_after_install undef colorize_debug undef colorize_output [0] colorize_print undef colorize_warn undef commandnumber_in_prompt [1] commands_quote undef connect_to_internet_ok [1] cpan_home [/c/Users/David/.cpan] curl [/mingw64/bin/curl] dontload_hash undef dontload_list undef ftp undef ftp_passive [1] ftp_proxy [] ftpstats_period undef ftpstats_size undef getcwd [cwd] gpg [/usr/bin/gpg] gzip [/usr/bin/gzip] halt_on_failure [0] histfile [/c/Users/David/.cpan/histfile] histsize [100] http_proxy [] inactivity_timeout [0] index_expire [1] inhibit_startup_message [0] keep_source_where [/c/Users/David/.cpan/sources] load_module_verbosity [none] lynx undef make [] make_arg [] make_install_arg [] make_install_make_command [] makepl_arg [INSTALLDIRS=site] mbuild_arg [] mbuild_install_arg [] mbuild_install_build_command [./Build] mbuildpl_arg [installdirs=site] ncftp undef ncftpget undef no_proxy [] pager [/usr/bin/less] password undef patch [/usr/bin/patch] patches_dir undef perl5lib_verbosity [none] plugin_list prefer_external_tar [1] prefer_installer [MB] prefs_dir [/c/Users/David/.cpan/prefs] prerequisites_policy [follow] proxy_pass undef proxy_user undef randomize_urllist undef recommends_policy [1] scan_cache [atstart] shell [/usr/bin/bash] show_unparsable_versions [0] show_upload_date [0] show_zero_versions [0] suggests_policy [0] tar [/usr/bin/tar] tar_verbosity [none] term_is_latin [1] term_ornaments [1] test_report [0] trust_test_report_history [0] unzip [/usr/bin/unzip] urllist 0 [http://www.cpan.org/] use_prompt_default [0] use_sqlite [0] username undef version_timeout [15] wait_list undef wget [] yaml_load_code [0] yaml_module [YAML] + + cpan[3]> exit Lockfile removed. C:\Users\David>

Replies are listed 'Best First'.
Re^5: Installing cpanminus in Strawberry Perl on Windows 10
by marto (Cardinal) on Aug 15, 2017 at 09:26 UTC

    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.

Re^5: Installing cpanminus in Strawberry Perl on Windows 10
by pryrt (Abbot) on Aug 15, 2017 at 13:26 UTC

    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: