-
Notifications
You must be signed in to change notification settings - Fork 248
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
No rule to make target '<PATH>/ruby.h' when make.exe is present in <OTHER_PATH>/mingw64/bin #105
Comments
Thank you for reporting this! I couldn't solve #47 to that time, but I never had the idea to install a make tool other than the one delivered by MSYS2! I'll try to reproduce this issue and to find a solution. Possibly there is a solution on the way already. We'll bundle MSYS2 into RubyInstaller in the future, so that this installation step is no longer required. See here. |
I'm confused. In a full MSYS2 install (32 & 64 bit), there are two So, if the 'solution' above changes behavior, it implies that either Must be missing something... |
@larskanis Cool, thanks! @MSP-Greg The initial problem after a Ruby installation and |
By 'full' (probably the wrong term), I meant 32 & 64 bit. Now that you have MSYS2 installed, I assume And, yes, I've seen the issues people have reported using ridk to install MSYS2. I haven't felt up to trying a ridk install of MSYS2, as my install has a lot of additional packages in it... Thanks, Greg |
@MSP-Greg Yes, it's there. The |
Thanks. So, given the following:
That would indicate that |
@MSP-Greg Yep, either that or it didn't set up the path correctly ( |
Yeah, since MSYS2 has worked fine for me for a for long time, I may have this totally wrong. |
The number of MSYS2 install issues substantially decreased since RubyInstaller comes with bundled Devkit. Please re-open the issue if adjustments for integration into Chocolatey are still required. |
What problems are you experiencing?
I'm on a fresh Windows 10 installation trying to set up Ruby and I ran into the issue already mentioned in several places: #47, gjtorikian/commonmarker#62 but no solution as of yet.
The issue is when trying to install a gem with native extension you get an error originating from
make
:make: *** No rule to make target '<PATH>/ruby.h'
I think I found the cause.
Steps to reproduce
I installed Ruby via Chocolatey and proceeded to run
ridk install
. I simply pressed enter there which I assume is equivalent to1 2 3
. This led to the issue (also pointed out here: gjtorikian/commonmarker#62 (comment)):'make' is not recognized as an internal or external command
To which the "solution" was (also pointed out in the same thread): https://stackoverflow.com/questions/32127524/how-to-install-and-use-make-in-windows-8-1
In our case:
copy C:\tools\msys64\mingw64\bin\mingw32-make.exe C:\tools\msys64\mingw64\bin\make.exe
This seem to have fixed
make
not being available but produced the issue described above.I then found MSYS2 at Chocolatey and followed instructions there with no success: https://chocolatey.org/packages/msys2
Turns out, I had to remove the manually created
make.exe
and it's working fine.So I suppose there're three possible issues at hand:
ridk install
by itself is flawed?ridk install
doesn't get rid of manually placed filesCan't reproduce (1) at this point but hopefully a fresh installation will yield the same behavior. Not sure if there's even something to do about (2) (3).
In any case it's now documented at least.
What's the output from
ridk version
?The text was updated successfully, but these errors were encountered: