-
-
Notifications
You must be signed in to change notification settings - Fork 907
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
[install] 1.18.4 on aarch64-mingw-ucrt #3470
Comments
Sorry you're having a problem, I'll try to help though I should say I don't have the hardware to try to reproduce what you're seeing. I see the error is from libtool, which based on the error message seems like it may not understand backslashes in windows paths. Do you know where libtool is in your PATH? Is it possible that you have more than one installed? @larskanis does this ring any bells for you? |
Nokogiri currently doesn't install out of the box on ARM64 on Windows. But the workaround is simple: ridk enable
pacman -S %MINGW_PACKAGE_PREFIX%-libxml2 %MINGW_PACKAGE_PREFIX%-libxslt
bundle config build.nokogiri --use-system-libraries
gem install nokogiri -- --use-system-libraries I'm working on a patch for nokogiri souce gem and precompiled binary gem. And to support The above error comes from a bad relationship between libtool and the clang linker |
Ok. So this sounds like the what I needed to do with the pg gem, so that I'll point out what they recommended https://github.com/ged/ruby-pg/blob/1f0db7bca38fff58b91cb71d6ffa55f2bc45bbc4/ext/extconf.rb#L230 So,
Will confirm once I'm in front of the right keyboard. |
Off-topic, but
You should not mess with |
I have build the gem successfully with system libraries now, thank you. Is it worth adding this to the compile error messages for MinGW? I' would think it might be useful even after @larskanis finishes a patch. |
re: |
@nathan-nhm re: your question:
Do you mean in the troubleshooting section of the installation docs? If so, I would definitely welcome a pull request adding to that section. 🙏 |
Have you read and followed the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?
What is the complete output of
gem install
orbundle install
?If installation failed during compilation, what are the complete contents of the
mkmf.log
file generated during the failed installation?Tell us about your system!
What is the output from
ruby -v
?ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [aarch64-mingw-ucrt]
What is the output from
gem env
?Windows on Arm, Running as a Virtual machine on a M4 Mac.
DevKit is up to date with ridk. No precompiled gem is yet available for this platform. Other gems, like
pg
, have successfully compiled.https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.4.2-1/rubyinstaller-3.4.2-1-arm.7z
Extracted with the Arm64 version or the 7z Windows installer. Ruby is not in the shell paths to prevent mixing versions, which is why all commands were run from Ruby's bin dir
The text was updated successfully, but these errors were encountered: