-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Need correct install incantation for modern macOS/homebrew install #50
Comments
Hi @cabo, If re2 is installed into $ gem install re2 -- --with-re2-dir=/opt/homebrew I tried to simulate this locally on my Intel Mac by manually compiling re2 into |
Thanks -- that actually works and probably should be indicated in the README. (I thought I had tried that and it failed, but maybe I messed something up.) |
(Even better would be to test the presence of this directory and use it if present, so it "just drops in".) |
GitHub: #50 To make installation easier for users of Homebrew on Apple Silicon, add /opt/homebrew to the default paths searched when trying to find the underlying re2 library. While doing so, add an extra fallback to /usr (instead of only searching /usr/local). Note we still search /usr/local first to avoid accidentally changing behaviour for existing users (e.g. suddenly compiling against a different version of re2 in /usr).
GitHub: #50 To make installation easier for users of Homebrew on Apple Silicon, add /opt/homebrew to the default paths searched when trying to find the underlying re2 library. While doing so, add an extra fallback to /usr (instead of only searching /usr/local). Note we still search /usr/local first to avoid accidentally changing behaviour for existing users (e.g. suddenly compiling against a different version of re2 in /usr).
GitHub: #50 To make installation easier for users of Homebrew on Apple Silicon, add /opt/homebrew to the default paths searched when trying to find the underlying re2 library. While doing so, add an extra fallback to /usr (instead of only searching /usr/local). Note we still search /usr/local first to avoid accidentally changing behaviour for existing users (e.g. suddenly compiling against a different version of re2 in /usr).
Thanks to @scottmatthewman who tested this out on an Apple Silicon machine for me and confirmed you can now run: $ brew install re2
$ gem install re2 Without having to specify a location for re2 with Please let me know if you have any issues, @cabo. |
I can confirm that it now works on my M1, too. |
I'm running macOS on an M1 (arm64-darwin) but
gem install re2
fails withDigging into the log shows
So apparently I need one of the --with... options, but I don't know which and with which value.
(Homebrew is in
/opt/homebrew
.)The text was updated successfully, but these errors were encountered: