-
-
Notifications
You must be signed in to change notification settings - Fork 330
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
Byebug install error #280
Comments
@katawura please include compilation log. |
Same issue for me... prompt$ gem install byebug -v '9.0.5'
creating Makefile make "DESTDIR=" clean make "DESTDIR=" make failed, exit code 2 Gem files will remain installed in /Users/myid/.rvm/gems/ruby-2.2.4/gems/byebug-9.0.5 for inspection. |
@notcreativeusername can you please include /Users/myid/.rvm/gems/ruby-2.2.4/extensions/x86_64-darwin-15/2.2.0/byebug-9.0.5/gem_make.out here ? |
Not sure it will help much.... and FYI to get around this error I ran sudo gem install byebug -v '9.0.5' and it didn't throw this error. Not ideal but it works. /Users/myid/.rvm/rubies/ruby-2.2.4/bin/ruby -r ./siteconf20160929-41835-10wdbb2.rb extconf.rb make "DESTDIR=" clean make "DESTDIR=" make failed, exit code 2 |
Looks like it only happens on Mac OS. So |
|
looks like it installed ok prompt$ sudo gem install byebug -v '9.0.5' and yes it appears they have the same path prompt$ sudo which gcc |
I'm not a Mac user, but looks like the only solution is to use:
|
I tried that before and it didn't work unless I typed something wrong..... prompt$ CC=llvm-gcc gem install byebug -v '9.0.5'
creating Makefile make "DESTDIR=" clean make "DESTDIR=" make failed, exit code 2 Gem files will remain installed in /Users/myid/.rvm/gems/ruby-2.2.4/gems/byebug-9.0.5 for inspection. |
Try a clean install of another ruby. If that works I think this is a problem with your current ruby. If it doesn't it might be a problem in byebug. For example,
Speaking from memory since I don't use rvm. |
@notcreativeusername anything? |
I had the same problem. Installing XCode Command Line Tools fixed it. |
Closing since it's an old issue probably unrelated to |
Confirmed @deivid-rodriguez! Upgrading rvm fixes this issue. |
This worked for me! sudo gem install byebug -v '11.1.3' Fetching byebug-11.1.3.gem |
I does NOT work on the latest stable macOS 11.4
|
I can confirm it is not working on Ruby 3.0.1 running on Apple M1, macOS 11.5.2 |
I'm also unable to install this extension (or sqlite3 1.4.2) using Ruby 3.0.0 or 3.0.2 on macOS (Intel) 11.5.2. |
guys, any update on this? I am also not able to install it on Apple M1, Big Sur |
I am also having issues, running Big Sur. Same problem as above. |
I definitely don't have this 100% but in case this is useful to someone else, here's what I did to get this working. Background: I have an Intel MacBookPro on Catalina (10.15.7). I was getting the above error message and the messages seemed to be coming from C, which made me think it could be a C-compiler problem. So, with homebrew, I was able to install a newer clang/llvm:
And then use it:
After this I was able to install byebug. I'm not aware of anything else I did, so I think this made the difference. In case it's helpful, here are the versions of clang before/after:
|
This might help - have not tried it yet to confirm.. |
I also encountered this error (Apple M1, Monterey), and it worked after setting |
I got it working with below steps on big sur: sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install Install llvm brew install llvm Set cc and ccx to llvm from homebrew |
Thank you. This solution worked for me. However, on my setup, Homebrew installed the clang executable in a different directory, and it was only necessary to set
|
For the people coming here from search engines... Installing older versions of byebug (in my case, 4.0.5) required the installation of llvm@11 and then
Oh, the joys of legacy development. |
Using Ventura, I had the same issue and tried the above solutions. I tried them in the embedded IDE terminal (vs code) and gem install showed same error - even when restarting embedded terminal. Then I switched to the OG mac terminal app and |
I get an error when I try to install llvm@11:
But the following worked for me on Sonoma 14.5 and Ruby 3.0.5:
llvm@16 did not work. I'm not sure at which point between 12 and 16 this broke. |
adapted answer if your address for brew packages is different:
|
l am currently trying to install byebug with my rails project and keep getting this error
Any idea why this would be?
The text was updated successfully, but these errors were encountered: