Closed chainoperator closed 2 years ago
Hi there! Thank you for the bug report.
I tried but was unable to reproduce this on macOS 11.6.1, Ruby v3.0.0 not on Apple Silicon and unfortunately I don't have access to Apple Silicon atm. I was able to find an almost identical issue on Linux but it looks like that fix is already incorporated.
This might be a silly question but have you tried uninstalling and reinstalling the gem? I'm wondering if perhaps there's been some drift with the dynamic libraries since it was first installed.
Hi! Thanks for your response.
I did uninstall and reinstall the gem. I also tried installing with gem install rbsecp256k1 -- --with-system-libraries
without any luck.
As a final test, I got a friend with the latest m1 mac to try it. Same error as me :(
Upgrading the secp256k1
from bitcoin core fixed the issue! Here's a PR: https://github.com/etscrivner/rbsecp256k1/pull/55
Let me know if you need additional changes before accepting the PR.
Thanks! I've cut a new release (rbsecp256k1 v5.1.0) that incorporates this and other fixes. See release notes here: https://github.com/etscrivner/rbsecp256k1/releases/tag/v5.1.0
Please upgrade whenever you can and double check that this fixes your issue.
Thank you! Works like a charm.
When trying to initialize
rbsecp256k1
withcontext = Secp256k1::Context.create
, I'm getting this error:I've made sure to install (and reinstall) the required
brew
formulae:brew install openssl libtool pkg-config gmp libffi
Looks like
GMP
is the culprit.Not sure if I'm missing something or if
rbsecp256k1
does not yet work on Apple Silicon? Any help would be appreciated.