-
Notifications
You must be signed in to change notification settings - Fork 24
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
Gem installation fails on MacOS #32
Comments
I have also tried to run this code before the
However it doesn't work and I get the exact same error... Any idea? |
I tried to downgrade from the latest version of Ruby to version 2.7 and the first check about the headers and libraries passes, however the build still fails with a different build error:
So I guess that this is not a problem specific to my computer, but it's the gem that is not compatible with the current versions of Ruby and rocksdb :( |
FWIW I can reproduce both errors on M1 Mac and on Linux, so it's a more general problem. |
There are two things happening here. First is that indeed gem installation process does not see a directory with rocksdb header files. This can be fixed by passing it like this:
However, there is a second problem here, which manifests in the log with this:
As far as I understand, this is because mkmf uses |
@katafrakt Have you finally found any solution? Or are you also stuck on this? |
If you run
with Ruby 3.0.2, it works correctly, at least for me (the actual path might be different on Intel Mac). So, I'm pretty sure this is Ruby's fault. They changed something in mkmf and I don't see it documented anywhere (classic Ruby development). |
@katafrakt Unfortunately it doesn't work for me on MacOS Intel (even if I adapt the Homebrew path and even using Ruby 3.0.x):
Any idea? |
Ok, I made it, but it was a pain (and doesn't work on the latest ruby version):
|
The gem is installed successfully and I can see it:
However for some obscure reason it still doesn't work (
|
Makes sense with installation. Changes in #30 fixed issues with I cannot reproduce problems with |
I can now install this gem successfully from RubyGems (thanks for releasing the new version!):
This is successful for Ruby 3.0, but you should still check compatibility with Ruby 3.1. |
@collimarco I created PR #33 which should address it. Would appreciate if you could test it as well. |
This worked for me. Just make sure, the directory location is right on your machine. On my machine the directory location is /opt/homebrew/Cellar/rocksdb/8.5.3 |
Can confirm the above works for me on 3.2.2 with |
I cannot install this gem on MacOS (Monterey / Intel / Ruby 3.1.2).
This is the error message:
I would love to use this gem and any help would be appreciated.
The text was updated successfully, but these errors were encountered: