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

Failure to install on Windows 7 64-bit #71

Closed
azawawi opened this issue Nov 9, 2015 · 7 comments
Closed

Failure to install on Windows 7 64-bit #71

azawawi opened this issue Nov 9, 2015 · 7 comments

Comments

@azawawi
Copy link
Contributor

azawawi commented Nov 9, 2015

d:\tools\zef>perl6 -Ilib bin/zef install .
Initializing
===> Fetching   The spawned process exited unsuccessfully (exit code: 259)
  in sub git-ls at D:\tools\zef\lib\Zef\App.pm6:581
  in sub git-package-json at D:\tools\zef\lib\Zef\App.pm6:606
  in sub packages at D:\tools\zef\lib\Zef\App.pm6:548
  in block  at D:\tools\zef\lib\Zef\App.pm6:399
  in sub CLI-WAITING-BAR at D:\tools\zef\lib\Zef\CLI.pm6:134
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:386
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:202
  in block <unit> at bin/zef:3

Perl 6 version:

d:\tools\zef>perl6 --version
This is perl6 version 2015.10-232-g460d89d built on MoarVM version 2015.10-61-g624d504
ugexe added a commit that referenced this issue Nov 9, 2015
The rakudo newline changes have not made their way to all aspects of
windows apparently, so we do the split into lines manually to get the
correct behavior.

Reference issue: #71
@ugexe
Copy link
Owner

ugexe commented Nov 9, 2015

This appears resolved with 904c16f as tested on Windows 10 and Windows 8 by manually splitting output lines instead of relying on rakudo to do the right thing (for now)

@azawawi
Copy link
Contributor Author

azawawi commented Nov 10, 2015

d:\tools\zef>perl6 -Ilib bin/zef install .
Initializing
===> Fetching   The spawned process exited unsuccessfully (exit code: -16)
  in sub git-ls at D:\tools\zef\lib\Zef\App.pm6:586
  in sub git-package-json at D:\tools\zef\lib\Zef\App.pm6:618
  in sub packages at D:\tools\zef\lib\Zef\App.pm6:548
  in block  at D:\tools\zef\lib\Zef\App.pm6:399
  in sub CLI-WAITING-BAR at D:\tools\zef\lib\Zef\CLI.pm6:134
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:386
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:202
  in block <unit> at bin/zef:3

on my box

@ugexe
Copy link
Owner

ugexe commented Nov 10, 2015

We found a bug in #perl6 where try { run "asdf" }; say 1; will not execute the say 1 without sinking inside the try block which explains why it dies with an exception. Then I checked on windows and found another bug in rakudo's Proc where, for a failed process, the return value is -1 on linux but -16 on windows.

I re-tested and it still worked on my end. So I think it must be related to the commands I used to clone and update the package list repo. I suspect there are unmerged updates from fetch and if you delete c:\user\name\.zef (or .zef in whatever folder $*HOME points to) it will work. I changed the fetch to a pull so that updates are simply merged in automatically.

If it still fails after deleting that folder and pulling these latest changes could you run the follow commands in the zef directory? (it would help me determine why git is being uncooperative in some cases but not others)

git update-index
git ls-files
git pull -n --update-shallow --depth=1

@azawawi
Copy link
Contributor Author

azawawi commented Nov 11, 2015

I found the problem I previously cloned zef in d:\tools and not in %USERPROFILE%\zef.

zef is working again perfectly for me again. Do you think zef is assuming too much during installation?

I assumed that it works like panda rebootstrap.pl and that was my downfall. My bad.

@ugexe
Copy link
Owner

ugexe commented Nov 11, 2015

Hmm you shouldn't have to clone zef to any specific directory, that
directory should just be for config stuff and the package list. Did you
happen to try after clearing the .zef directory? Maybe doing the clone
there meant you had to erase the previous package list repo? Otherwise
there may still be a problem as it should work like you expect.

On Wednesday, November 11, 2015, Ahmad M. Zawawi notifications@github.com
wrote:

I found the problem I previously cloned zef in d:\tools and not in
%USERPROFILE%\zef.

zef is working again perfectly for me again. Do you think zef is assuming
too much during installation?

I assumed that it works like panda rebootstrap.pl and that was my
downfall. My bad.


Reply to this email directly or view it on GitHub
#71 (comment).

@azawawi
Copy link
Contributor Author

azawawi commented Nov 12, 2015

  • Tried it after removing .zef and zef from `%USERPROFILE%`` directory.
  • git repo was at d:\tools\zef.
  • zef died with the following message after creating an empty %USERPROFILE%\.zef\git:
d:\tools\zef>perl6 -Ilib bin\zef install .
Initializing
===> Fetching   The spawned process exited unsuccessfully (exit code: 259)
  in sub git-ls at D:\tools\zef\lib\Zef\App.pm6:595
  in sub git-package-json at D:\tools\zef\lib\Zef\App.pm6:629
  in sub packages at D:\tools\zef\lib\Zef\App.pm6:552
  in block  at D:\tools\zef\lib\Zef\App.pm6:403
  in sub CLI-WAITING-BAR at D:\tools\zef\lib\Zef\CLI.pm6:134
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:390
  in sub MAIN at D:\tools\zef\lib\Zef\App.pm6:206
  in block <unit> at bin\zef:3

@ugexe
Copy link
Owner

ugexe commented Jan 8, 2016

Closing this. The refactor replaced the entire code base so this may or may not be true anymore. I've successfully used it on windows 10 and 8 however. If the new version of zef still fails for you please feel free to re-open!

@ugexe ugexe closed this as completed Jan 8, 2016
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