les751 has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to install cpanminus in Strawberry Perl (as part of a project to run some 3D printer software).
When I tried to build, I received an error message saying cpanminus needed to be installed.
C:\Users\David\Documents\3D_Printer\Slic3r>perl Build.PL cpanm was not found. Please install it before running this script. There are several ways to install cpanm, try one of these: apt-get install cpanminus curl -L http://cpanmin.us | perl - --sudo App::cpanminus cpan App::cpanminus If it is installed in a non-standard location you can do: CPANM=/path/to/cpanm perl Build.PL C:\Users\David\Documents\3D_Printer\Slic3r>
I tried cpan App:cpanminus (call this method #3)
C:\Users\David\Documents\3D_Printer\Slic3r>perl -v This is perl 5, version 24, subversion 1 (v5.24.1) built for MSWin32-x +64-multi-thread Copyright 1987-2017, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge. C:\Users\David\Documents\3D_Printer\Slic3r>cpan App::cpanminus Loading internal null logger. Install Log::Log4perl for logging messag +es CPAN: Storable loaded ok (v2.56_01) Reading '\c\Users\David\.cpan\Metadata' Database was generated on Sun, 30 Jul 2017 18:41:02 GMT Running install for module 'App::cpanminus' CPAN: Digest::SHA loaded ok (v5.96) CPAN: Compress::Zlib loaded ok (v2.074) Checksum for \c\Users\David\.cpan\sources\authors\id\M\MI\MIYAGAWA\App +-cpanminus-1.7043.tar.gz ok 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 C:\Users\David\Documents\3D_Printer\Slic3r>
I also tried, (call this method #1)
C:\Users\David\Documents\3D_Printer\Slic3r>apt-get install cpanminus 'apt-get' is not recognized as an internal or external command, operable program or batch file. C:\Users\David\Documents\3D_Printer\Slic3r>
And I tried, curl... (call this method #2)
C:\Users\David\Documents\3D_Printer\Slic3r>curl -L http://cpanmin.us | + perl - --sudo App::cpanminus 'curl' is not recognized as an internal or external command, operable program or batch file. C:\Users\David\Documents\3D_Printer\Slic3r>
In method #3, I noticed that it is trying to install in \c\Users\... which creates a directory called 'c' off the root of drive C: (i.e. C:\c\Users...etc.). Thus, I see a Unix/DOS naming problem.
I need to use the particular version of Strawberry perl (as described at https://github.com/alexrj/Slic3r/wiki/Running-Slic3r-from-git-on-Windows#installing-a-perl-for-windows) because it is the only version with the necessary features to run Slic3r, which is what I am ultimatly trying to achieve.
What can I do to install cpanminus with my set up?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installing cpanminus in Strawberry Perl on Windows 10
by pryrt (Abbot) on Aug 10, 2017 at 13:34 UTC | |
by les751 (Initiate) on Aug 11, 2017 at 00:35 UTC | |
by pryrt (Abbot) on Aug 11, 2017 at 13:12 UTC | |
by les751 (Initiate) on Aug 15, 2017 at 00:37 UTC | |
by marto (Cardinal) on Aug 15, 2017 at 09:26 UTC | |
by pryrt (Abbot) on Aug 15, 2017 at 13:26 UTC | |
|
Re: Installing cpanminus in Strawberry Perl on Windows 10
by dasgar (Priest) on Aug 10, 2017 at 13:45 UTC | |
by VinsWorldcom (Prior) on Aug 10, 2017 at 18:24 UTC |