-
Notifications
You must be signed in to change notification settings - Fork 140
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
Fails to install gem on Windows 10 #2809
Comments
Interesting — it looks like your C compiler isn't happy with the enum being used as the index of the array. I'm really not sure why. This looks fixable though. |
I need to know the version of your compiler. I'm not entirely sure how to retrieve it on windows (my windows knowledge is very little...). I can see it's MinGW, but I can't tell the version. Maybe |
Alright, after a couple of attempts I found it. Had to launch UCRT64 and type
|
@Tofpu I've tried to reproduce this and found the gem installed fine for me. I am on Windows 11 rather than 10, but I don't think that's the issue. You're running an older version of msys. Is this required? I can't say for certain that there's a GCC bug that's been addressed in newer releases, but the gem cleanly installed for me with GCC 13.2. That's the version that was installed by RubyInstaller for both Ruby 3.3.0 and 3.3.1 for me.
I'd be curious to see if the problem goes away for you with a newer msys installation. |
Okay, I reinstalled everything with RubyInstaller (which is my first time, the previous installation was from another indirect source I suppose) and tried installing prism and it worked. Thank you guys for the quick assistance! |
Okay! As long as the issue is resolved. I think there still might be a MSYS GCC-12 -specific issue, but I'm fine closing for now. |
I tried to provide as much information as I could with my current limited knowledge of the systems involved. I'm open to providing more information if you could provide me instructions or something that could potentially guide me.
Operating System:
Ruby:
ruby 3.3.1 (2024-04-23 revision c56cd86388) [x64-mingw-ucrt]
Gem:
3.5.10
When attempting to install the latest version of prism via gem:
Content of mkmf.log in
C:/Users/T/.local/share/gem/ruby/3.3.0/extensions/x64-mingw-ucrt/3.3.0/prism-0.29.0/mkmf.log
:The text was updated successfully, but these errors were encountered: