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

Installation fails in environments without Git #13

Open
kojix2 opened this issue Jun 2, 2023 · 0 comments
Open

Installation fails in environments without Git #13

kojix2 opened this issue Jun 2, 2023 · 0 comments

Comments

@kojix2
Copy link
Owner

kojix2 commented Jun 2, 2023

Programmers (in the broadest sense of the word) are seldom use an environment without Git. However, when I tried to install the minimap2 gem on our new Windows machine, it failed. This is because ruby-minimap2 uses the git apply command to adapt the patch file before compiling minimap2 to create a shared library.

C:\Users\kojix>gem install minimap2
Fetching minimap2-0.2.26.1.gem
Fetching ffi-1.15.5.gem
Fetching ffi-bitfield-0.0.7.gem
Building native extensions. This could take a while...
Successfully installed ffi-1.15.5
Successfully installed ffi-bitfield-0.0.7
Building native extensions. This could take a while...
ERROR:  Error installing minimap2:
        ERROR: Failed to build gem native extension.

    current directory: C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/minimap2-0.2.26.1/ext
C:/Ruby32-x64/bin/ruby.exe -rrubygems C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/rake-13.0.6/exe/rake RUBYARCHDIR\=C:/Ruby32-x64/lib/ruby/gems/3.2.0/extensions/x64-mingw-ucrt/3.2.0/minimap2-0.2.26.1 RUBYLIBDIR\=C:/Ruby32-x64/lib/ruby/gems/3.2.0/extensions/x64-mingw-ucrt/3.2.0/minimap2-0.2.26.1
git apply ../minimap2.patch
rake aborted!
Command failed with status (127): [git apply ../minimap2.patch...]

Tasks: TOP => default => minimap2:build
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/minimap2-0.2.26.1 for inspection.
Results logged to C:/Ruby32-x64/lib/ruby/gems/3.2.0/extensions/x64-mingw-ucrt/3.2.0/minimap2-0.2.26.1/gem_make.out

This is not likely to be a serious problem for many users, but a more clear error message might be better.

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

1 participant