-
Notifications
You must be signed in to change notification settings - Fork 15
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
failed to install on Windows #5
Comments
this test I am not sure what cause them to fail... but feel free to ignore the error, of course. But judging from your error here, I think there is a good chance that |
Furthermore I'm all OK to support windows, but I do not always have a Win32 machine equipped with me. Feel free to send PRs/patches and convince me to merge them. (and I'm usually very easy to convince :) |
I can duplicate this issue w/ Strawberry Perl 5.22.0 on Win 10 on the current Git repo with the Perl executable patch. The problem, I believe, is that the child process running App::Prove isn't inheriting the library path from the parent process, so, because Test::Continuous is not yet installed in the system path at test time, and because the directory where App::Prove is running has changed, it can't find the Test::Continuous::Formatter module that it needs. Let me take a look. Here's the output of a prove -l -v t/simpleapp-simple.t (ignore the cygwin64 stuff - I'm running it from that directory, but am definitely running Strawberry Perl, not Cygwin): C:\cygwin64\home\jmaslak\Test-Continuous>prove -lr t/simpleapp-simple.t
t/simpleapp-simple.t .. Can't load Test::Continuous::Formatter: Can't locate Test/Continuous/Formatter.pm in @INC (you may need to install the Test::Continuous::Formatter module) (@INC contains: C:/cygwin64/home/jmaslak/Test-Continuous/t/lib:C:/cygwin64/home/jmaslak/Test-Continuous/t/../lib:C:\cygwin64\home\jmaslak\Test-Continuous\lib C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib .) at (eval 11) line 2.
at C:/Strawberry/perl/lib/TAP/Harness/Env.pm line 118.
t/simpleapp-simple.t .. 1/1
# Failed test at t/simpleapp-simple.t line 25.
# Structures begin differing at:
# $got->[0] = Does not exist
# $expected->[0] = 'ALL PASSED
# '
# Looks like you failed 1 test of 1.
t/simpleapp-simple.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests |
The cause is that Windows uses a semicolon, not a colon, to separate components in $ENV{PERL5LIB}. I am working through things to use File::Spec and $Config{path_sep}. I've noticed a few other things I'm going to try to fix up in another few commits before I'm fully ready to tackle this - I have a partial patch together and it is running on Strawberry 5.20 and passing tests, but it's not quite in a shippable state. Stay tuned. |
Does this module support Windows?
I am using strawberry perl v5.18.2 on Windows 7, can't install it via cpan:
The text was updated successfully, but these errors were encountered: