-
Notifications
You must be signed in to change notification settings - Fork 29
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
support windows #18
Comments
I guess this just re-emerged in the context of RuboCop - see rubocop/rubocop#5989 Perhaps on Windows you can just fallback automatically to the pure Ruby version? |
The issue seems similar to this: https://stackoverflow.com/questions/19176136/make-is-not-recognized-as-internal-or-external-command In theory, it should have worked on Windows since the extension is implemented with CRuby's interface, but I never had tested jaro_winkler on windows before. I'll confirm this issue on windows 10 later. |
Oops, I suddenly realized I misread rubocop/rubocop#5989, it's JRuby on windows platform. |
I'm still seeing this issue on 64 bit Ruby2.3.1 on Windows. Popped up with recent Rubocop update |
@rtdevlin Would you paste the full error message here, thank you! |
current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jaro_winkler-1.5.1/ext/jaro_winkler C:/Ruby23-x64/bin/ruby.exe -r ./siteconf20180703-277200-1fzi9md.rb extconf.rb creating Makefile current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jaro_winkler-1.5.1/ext/jaro_winkler make "DESTDIR=" clean current directory: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/jaro_winkler-1.5.1/ext/jaro_winkler make "DESTDIR=" generating jaro_winkler_ext-x64-mingw32.def make: Error -- Don't know how to make /C/Ruby23-x64/include/ruby-2.3.0/ruby.h make failed, exit code 255 |
@rtdevlin I am not able to reproduce your issue:
I guess It might have something to do with your building environment. Are you able to install other C extensions? For example: |
I wasn't able to install thin, but I know I've installed gems that required the Devkit and it worked. The only difference I see right now is Windows versions. I'm going to try to install on my home machine (the issue I'm having is at work, else I wouldn't be using Windows) |
Was able to install on Windows 10. Thanks for looking into the issue, I'll continue trying to figure out what's wrong with my machine |
Still running into issues on this. Windows 10 x64:
|
I was able to fix this by uninstalling ruby (installed via Chocolatey) and manually installing RubyInstaller+DevKit https://rubyinstaller.org/downloads/ |
If it can help someone, I had the same issue and the problem was the path of my ruby installation. It was installed in "C:\Program Files\ruby" and Make does not seems to like the space in the path of the executables. So I moved the folder elsewhere (like "C:\DATA") and it works now. |
For folks who use $ scoop install ruby
$ scoop install msys2
$ ridk install
# PRESS ENTER (installs MSYS2 + MINGW Development Kit) This should make |
@okmanideep thanks for sharing. it works |
No description provided.
The text was updated successfully, but these errors were encountered: