-
Notifications
You must be signed in to change notification settings - Fork 14
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
NoMethod Error During Post-Install Check #12
Comments
A quick note that I tried this on the v0.1.1.2 tag as well and it's the same error. I'm guessing it's something to do with the c extensions on x64 vs ARM? |
Further: This compiles on Ubuntu ARM running in Parallels and Raspberry Pi OS on a Pi 3 without an issue, so it's something with the compiler on MacOS Monterey (maybe older versions as well). |
Weird.
This has compiled the extension that supposedly defines the method here: rb_define_module_function(mm, "distance3_c", idhash_distance, 2); If there was any problem during compilation it would not invoke the test. Unfortunately I don't have neither ARM nor Monterey to dig deeper. |
Thanks for getting back to me! Do you have any guidance? I'm going to attempt to dig in myself and fix this for you. Just basic starting points would be very helpful. |
Would be cool but I wish I had any guidance for myself. The whole native extensions thing has no comprehensive manual, only a ton of mkmf methods with no explanation on how to use them properly and how the gem installation routine goes at all. And if you ask at SO they downvote, close and delete, lol. So the post-install-check thing is a pure local invention on how to check if the native extension produces correct fingerprints after installation to detect any platform issue. The |
Thanks so much for this write up! I totally get the SO frustration. I have a few ARM machines, so I may be in a good spot to work on this a bit. Let me dig in over the week and see what I can come up with. Thank you so much for your work so far on all this, it's wildly appreciated. |
Due to how rarely I test the compilation, yesterday I was surprised as "I don't understand how it worked at all" ..) |
When trying to install the dhash-vips gem on MacOS 12.0.1 on Apple Silicon (ARM) using Ruby 3.0.2, I'm getting the following error:
This happens when using either
gem "dhash-vips"
or `gem "dhash-vips", git: "https://github.com/nakilon/dhash-vips/"Thank you for any help you can provide in figuring this out!
The text was updated successfully, but these errors were encountered: