$ head `which cpan`

use 5.006;
use strict;
use vars qw($VERSION);

use App::Cpan;
$VERSION = '1.5902';

my $rc = App::Cpan->run( @ARGV );

$ cpan
bash.exe: /c/strawberry/perl/bin/cpan: /usr/local/bin/perl: bad
interpreter: No
such file or directory

*Correcting the shebang to "#!/usr/bin/env perl" fixes this problem.*

$ cpan

cpan shell -- CPAN exploration and modules installation (v1.9800)
Enter 'h' for help.

Could the next version of Strawberry Perl use the amended shebang to
increase compatibility with Git Bash?


$ specs perl bash git os

specs 0.4

ppm --version
Unknown or ambiguous command '--version'; type 'help' for commands.

cpan --version
c:\strawberry\perl\bin/cpan version 1.5902 calling Getopt::Std::getopts
(version 1.07 [paranoid]),
running under Perl version 5.16.2.
[Now continuing due to backward compatibility and excessive paranoia.
See 'perldoc Getopt::Std' about $Getopt::Std::STANDARD_HELP_VERSION.]
Nothing to install!

perl --version

This is perl 5, version 16, subversion 2 (v5.16.2) built for

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
GNU General Public License, which may be found in the Perl 5 source kit.

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 Page.

bash --version
GNU bash, version 3.1.0(1)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

git --version
git version 1.8.0.msysgit.0

systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows XP Professional
OS Version: 5.1.2600 Service Pack 3 Build 2600


Andrew Pennebaker

Search Discussions

  • Linda A. Walsh at Apr 26, 2013 at 6:30 pm

    Andrew Pennebaker wrote:
    $ head `which cpan`

    use 5.006;
    use strict;
    use vars qw($VERSION);

    use App::Cpan;
    $VERSION = '1.5902';
    Maybe you didn't run some installer script -- it patches those files:
    head $(which cpan)
    eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
    if $running_under_some_shell;
    use strict;
    use vars qw($VERSION);

    use App::Cpan;
    $VERSION = '1.57';
    Note, I get the above output on both my linux and cygwin box...

  • Kmx at Apr 27, 2013 at 12:18 pm
    It should be IMO fixed in

    Please have a look athttps://rt.cpan.org/Public/Bug/Display.html?id=82837


Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupwin32-vanilla @
postedApr 26, '13 at 3:40p
activeApr 27, '13 at 12:18p



site design / logo © 2019 Grokbase