-
Notifications
You must be signed in to change notification settings - Fork 203
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
Ignoring mimemagic-0.3.9 because its extensions are not built. Try: gem pristine mimemagic --version 0.3.9 #493
Comments
Same problem with mimemagic 0.4.3. Looking at what happens when I install mimemagic locally it seems that it generates a file On the other hand in the war I only find I can however confirm that copying the extensions directory to the WEB-INF/gems/ directory gets me past the "Ignoring because extensions are not built", I'm not quite sure how to automatically add the directory yet, but at least it will be possible to work around this issue for now. |
I have seen this message for other gems that would have a C extension on CRuby, but skip building the extension on JRuby (falling back on a pure-Ruby or Java-based version). Something in RubyGems seems to get confused about whether an extension is or should be present: rubygems/rubygems#3520 If you are able to reproduce this consistently, you could report it there and maybe we will find a solution! |
@headius Thanks so much for linking! |
For what it's worth, I just started getting the following warning locally when running warbler specs:
Running The problem here was that when rubygems require checks for requirable files inside installed gems, it checks whether the gems being checked are missing extensions. If a gem is missing extensions, it's considered an ill-installed gem, and it's ignored. In order to check whether a gem has extensions, rubygems checks the following: https://github.com/rubygems/rubygems/blob/56fd9e1275e9059ff7e9ef36e9f9a778c625320e/lib/rubygems/specification.rb#L2128-L2135. def missing_extensions?
return false if default_gem?
return false if extensions.empty?
return false if File.exist? gem_build_complete_path
true
end So:
In my case, the problem was that I migrated from java 11 to java 15, so the path of the In this case, however, it seems to me that the warning is more meaningful because it's indicating that the artifacts of building the extension are not being included in the packaged war. Just reporting in case this could help. |
This issue is still seen. Recently upgraded mimemagic to 0.4.3 but during application deployment, while accessing rake, below error was seen: As a temporary solution, bundling the mimemagic-0.4.3.gem file with the application, re-installing the gem using this file & lastly doing local bundle install. Any idea when can be done instead of this? |
Recently had to upgrade Mimemagic to version 0.3.9 because version 0.3.2 was pulled from RubyGems.
After rebuilding our WAR file, we are getting the following error message in our Tomcat logs:
Ignoring mimemagic-0.3.9 because its extensions are not built. Try: gem pristine mimemagic --version 0.3.9
The app itself produces the following error when tryin to view it:
Could not find mimemagic-0.3.9 in any of the sources from uri:classloader
Does anyone have any insight or direction for where to go next here?
The text was updated successfully, but these errors were encountered: