Skip to content

Problems installing 1.11.7 on Windows when git absent #349

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

Closed
Arcanemagus opened this issue Mar 4, 2016 · 3 comments
Closed

Problems installing 1.11.7 on Windows when git absent #349

Arcanemagus opened this issue Mar 4, 2016 · 3 comments
Labels

Comments

@Arcanemagus
Copy link
Contributor

When attempting to update to v1.11.7 on Windows I get the following error:

PS C:\Users\Landon Abney> gem update
Updating installed gems
Updating github_changelog_generator
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing github_changelog_generator:
        ERROR: Failed to build gem native extension.

    C:/Ruby22-x64/bin/ruby.exe -rubygems C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rake-10.5.0/bin/rake RUBYARCHDIR=C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/github_changelog_generator-1.11.7 RUBYLIBDIR=C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/github_changelog_generator-1.11.7
rake aborted!
Bundler::GemspecError: There was a Errno::ENOENT while loading github_changelog_generator.gemspec:
No such file or directory - git ls-files -z from
  C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/github_changelog_generator-1.11.7/github_changelog_generator.gemspec:21:in ``'

Errno::ENOENT: No such file or directory - git ls-files -z

(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/github_changelog_generator-1.11.7 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/github_changelog_generator-1.11.7/gem_make.out
Gems updated: github_changelog_generator

It looks like this is assuming the git command is available when installing, which is a bit odd as no other gem has required that so far...

@Arcanemagus
Copy link
Contributor Author

Tried again from a shell that had git available, that is indeed the problem.

@olleolleolle
Copy link
Collaborator

One can say the issue is that the gem wants to install its extra man pages using the Rakefile.

You can see it being called the extension.

If we'd skip that bit in the gemspec, the extension bit, which names the Rakefile, on your platform - it'd be able to install, I believe.

@olleolleolle olleolleolle changed the title Problems installing 1.11.7 on Windows Problems installing 1.11.7 on Windows when git absent Mar 19, 2016
@olleolleolle
Copy link
Collaborator

This has been changed to not use the git binary.

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

No branches or pull requests

2 participants