-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
BuildError: ERROR: Failed to build gem native extension byebug 8.2.1 #835
Comments
Got it working with these - brew install llvm@11
export CC=/usr/local/opt/llvm@11/bin/clang
export CCX=/usr/local/opt/llvm@11/bin/clang |
i tried this, but without success :/ |
this work's for me: |
Running the solutions here I still get 3 errors on Ruby 2.7.0 for an Intel Mac. One of the errors:
|
For anyone stumbling on this just update the gem to the latest version and try that. It ended up working for me (since this is just for debugging won't really affect your app and not worth to figure out how to use all these C compilers for the older versions) |
Yeah I updated the gem and that worked. Really wish there was a solution that isn't having to change the gemfile. |
Older versions have trouble building on macOS, see: deivid-rodriguez/byebug#835
Hello everyone, a few months ago I had the exact same problem with a 2015 Mac and I solved it by following the steps suggested at: #280. However now that I want to run the same project on my Macbook Air with M1 chip I get the error and the above solution doesn't work.
I share the record.
Enviroment: Macbook Air M1, ruby 2.3.1, rails 4.2.2
When i run : /usr/bin/clang -v
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
--- run : /usr/local/opt/llvm/bin/clang -v
zsh: no such file or directory: /usr/local/opt/llvm/bin/clang
Thanks in advance
The text was updated successfully, but these errors were encountered: