Skip to content
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

Install fails on Windows #82

Closed
zoffixznet opened this issue Mar 27, 2018 · 2 comments
Closed

Install fails on Windows #82

zoffixznet opened this issue Mar 27, 2018 · 2 comments

Comments

@zoffixznet
Copy link
Contributor

Spotted this problem on reddit thread

Install fails on Win8:

C:\rakudo\bin>zef install Gtk::Simple
===> Searching for: Gtk::Simple
===> Building: GTK::Simple:ver<0.1.5>
At line:1 char:192
+ ... )) -replace \"-\",\"\" } get-sha256 C:\Users\bit\.zef\store\gtk-simple.git\df15c ...
+                    ~
You must provide a value expression following the '-' operator.
At line:1 char:192
+ "function get-sha256 { param($file);[system.bitconverter]::tostring([System.Secu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '\",\"\" } get-sha256 C:\Users\bit\.zef\store\gtk-simple.git\df15c903afdeb207a7115e8a0ff709f783559d05\resources\blib\lib\GTK\libatk-1.0-0.dll"' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ExpectedValueExpression

Effective index out of range. Is: -1, should be in 0..^Inf
  in block  at C:\Users\bit\.zef\store\gtk-simple.git\df15c903afdeb207a7115e8a0ff709f783559d05\Build.pm line 55
  in method build at C:\Users\bit\.zef\store\gtk-simple.git\df15c903afdeb207a7115e8a0ff709f783559d05\Build.pm line 49
  in block <unit> at -e line 1

Actually thrown at:
  in block  at C:\Users\bit\.zef\store\gtk-simple.git\df15c903afdeb207a7115e8a0ff709f783559d05\Build.pm line 92
  in method build at C:\Users\bit\.zef\store\gtk-simple.git\df15c903afdeb207a7115e8a0ff709f783559d05\Build.pm line 49
  in block <unit> at -e line 1

===> Building [OK] for GTK::Simple:ver<0.1.5>
===> Testing: GTK::Simple:ver<0.1.5>
# Failed test at t\01-sanity.t line 12
# Failed to copy 'C:\Users\bit\.zef\store\gtk-simple.git\df15c903afdeb207a7115e8a0ff709f783559d05\resources\blib\lib\GTK\libgtk-3-0.dll' to 'C:\Users\bit\AppData\Local\Temp\libgtk-3-0.dll': Failed to copy file: no such file or directory
# Failed test at t\01-sanity.t line 13
# Failed to copy 'C:\Users\bit\.zef\store\gtk-simple.git\df15c903afdeb207a7115e8a0ff709f783559d05\resources\blib\lib\GTK\libglib-2.0-0.dll' to 'C:\Users\bit\AppData\Local\Temp\libglib-2.0-0.dll': Failed to copy file: no such file or directo
ry
# Failed test at t\01-sanity.t line 14
# No such method 'run' for invocant of type 'Any'
# Looks like you failed 3 tests of 3
===> Testing [FAIL]: GTK::Simple:ver<0.1.5>
Aborting due to test failure: GTK::Simple:ver<0.1.5> (use --force-test to override)
  in code  at C:\rakudo\share\perl6\site\sources\9062A39D0256C0BD797016C3FE93D839191AFE2B (Zef::Client) line 385
  in method test at C:\rakudo\share\perl6\site\sources\9062A39D0256C0BD797016C3FE93D839191AFE2B (Zef::Client) line 363
  in code  at C:\rakudo\share\perl6\site\sources\9062A39D0256C0BD797016C3FE93D839191AFE2B (Zef::Client) line 540
  in sub  at C:\rakudo\share\perl6\site\sources\9062A39D0256C0BD797016C3FE93D839191AFE2B (Zef::Client) line 537
  in method install at C:\rakudo\share\perl6\site\sources\9062A39D0256C0BD797016C3FE93D839191AFE2B (Zef::Client) line 643
  in sub MAIN at C:\rakudo\share\perl6\site\sources\9E04C517E18C976DC9F459E2CE31A87142034020 (Zef::CLI) line 152
  in block <unit> at C:\rakudo\share\perl6\site\resources\3DCC2E58BBBF1E42EA4C8C976F9BE97162B9EFA2 line 3
  in sub MAIN at C:\rakudo\share\perl6\site\bin\zef line 2
  in block <unit> at C:\rakudo\share\perl6\site\bin\zef line 2

I tried to repro on my own Win10, but it failed even earlier when trying to install OpenSSL

@timo
Copy link
Contributor

timo commented Apr 3, 2018

thanks to @zoffixznet's help I got CertUtil.exe to maybe work as a fallback to the powershell script. Would be nice if someone who had the problem on their own machine in the past could verify that it works for them as well.

@zoffixznet zoffixznet reopened this Apr 3, 2018
@zoffixznet
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants