-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests t/03errors.t and t/09perl5lib.t fails on Windows 10: 'inc\bin\testml-cpan' is not recognized as an internal or external command #79
Comments
It seems that the shebang in
|
No problems for me on Windows 7, but I suspect the difference has more to
do with our respective shells and/or our PATHEXT environment variables.
Does your PATHEXT include .CMD ?
And what shell are you using ? (I'm using cmd.exe.)
I think the error message you're seeing (namely "'inc\bin\testml-cpan' is
not recognized as an internal or external command") indicates that the
shebang line is being interpreted correctly.
It's just that "inc\bin\testml-cpan.cmd" is not being recognized as a valid
command on your box - though it's fine for me in the cmd.exe shell.
So I think that changing the shebang line in the 2 affected test files from
"#!inc\bin\testml-cpan" to "#!./inc/bin/testml-cpan" or
"#!inc/bin/testml-cpan" will work for you.
Can you confirm that ?
Unfortunately, neither of those 2 alternatives will work for me because my
cmd.exe shell insists upon the use of backslashes in the command.
I'm hopeful that we'll be able to find some portable way of meeting the
desired aim, once we establish what's going on.
For example, your workaround of "perl -Mblib ./inc/bin/testml-cpan
t/03errors.t" *is* also quite acceptable to my cmd.exe shell
Cheers,
Rob
…On Thu, Aug 13, 2020 at 2:25 PM Håkon Hægland ***@***.***> wrote:
It seems that the shebang in t\03errors.t is not interpreted:
#!inc\bin\testml-cpan. I can run the test fine like this:
>perl -Mblib ./inc/bin/testml-cpan t/03errors.t
ok 1 - Bad first parameter
ok 2 - Bad first parameter
ok 3 - Bad shortcut
ok 4 - Bad shortcut
ok 5 - Bad shortcut
ok 6 - Bad shortcut
ok 7 - Bad config option
1..7
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#79 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAR3PBMC63AWGMQ7EYP34DSANTK3ANCNFSM4P5YBG6A>
.
|
@sisyphus I can confirm that
Note I did not change the shebang, so it is still
So this will execute the CMD script
which is expanded to something like (for the file
Unfortunately I cannot remember why I removed I am not sure if the |
On Thu, Aug 13, 2020 at 11:44 PM Håkon Hægland ***@***.***> wrote:
I am not sure if the Makefile should check if the .CMD is in %PATHEXT% or
we simply ignore the possibility that it could be missing since it should
in %PATHEXT% by default, according to this
<https://superuser.com/q/1027078/278134> post..
Well ... the Makefile.PL could just as easily have called the
file 'inc/bin/testml-cpan.bat' - which is probably a better choice of
extension, as I would think it highly unlikely that '.bat' will be missing
from the PATHEXT of a system that's running perl.
I'm assuming that all of those batch files that we see in perl/bin on
Windows like cpan.bat, perldoc.bat, h2xs.bat, are hard-coded to '.bat' and
would not be given a different extension if '.bat' was missing from PATHEXT.
I also assume that you still have '.bat' in PATHEXT. (If not, there's an
awful lot of utilities in Strawberry Perl that you're unable to use.)
Anyway, that's what my recommendation would be - in the Makefile.PL,
replace:
my $file = 'inc/bin/testml-cpan.cmd';
with
my $file = 'inc/bin/testml-cpan.bat';
I notice that the Makefile.PL "was automatically generated by
'inc/bin/testml-cpan.cmd';Dist::Zilla::Plugin::MakeMaker v6.012", so I
don't know how easy it would be for that automated process to put that
change in place.
Cheers,
Rob
|
I am trying to install
Inline
on Windows 10 with Strawberry Perl version 5.30.1:The text was updated successfully, but these errors were encountered: