-
-
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
"Sorry, you can't use byebug without Readline" #289
Comments
Apparently this could be due to Homebrew:
For me this was the output:
|
Hi @olivierlacan, what is your output from Mine is...
My Ruby (managed by
I had to re-compile Ruby to fix this issue. Interesting to know if there is a better/simpler fix for it! |
Someone also suggested adding |
|
Looks like this is related to #118 and could actually be a dupe, please close if that's the case. It seems like recommending |
@olivierlacan Did you try reinstalling your Ruby after sorting out your readline libraries? I'm not aware of a better solution... By the way, anyone contributing to the discussion here, feel free to improve the troubleshooting instructions for OSX. I don't use that, so I have no idea. Or maybe a wiki page should be created and linked from the error message, I don't know. |
I had reinstalled ruby. It have been works well. |
Minor ===== * Had to add `rb-readline` gem for this Ruby to work correctly. deivid-rodriguez/byebug#289 (comment)
I'm going to close this since it does not seem like a problem in byebug. |
Not certain why but in certain circumstances ruby seems to lose it's link to the readline dylib causing byebug to raise errors when being required, possibly as a result of a 'brew update'. The fix in this commit is mentioned here: deivid-rodriguez/byebug#289 The alternative seems to be to recompile ruby.
To fix this (for OSX, tested on Sierra), run following command in your shell -
|
@mehta thanks! |
@mehta bloody perfect! |
@mehta solution worked for me too. |
@mehta definite fix for Sierra, no reinstall or recompile of Ruby needed. Thanks a lot for this tip!! |
Thanks @mehta |
@mehta worked for me, thanks. |
@olivierlacan 's post worked for me, thanks so much!
Also on a side note, loving Ruby Facets man! |
Worked for me in El Capitan as well. |
@mehta thanks buddy! |
@mehta 👍 |
Thanks man! That did the trick. SO grateful. |
@mehta answer worked for me too, but had to do a bit change on Linux like below.
|
thanks @mehta saved me! |
I was using the I wrote up a gist here to give solutions for |
Worked also on el capitan. |
@mehta still works mate. cheers. |
@mehta gracias senor |
@mehta my dude |
@mehta Dankeschoen! Excellent! |
… installation - when installing (on Mac OS Sierra for instance), `byebug` generated an error since it required `readline` which wasn't installed - see `byebug` related issue @link deivid-rodriguez/byebug#289
Apologies for commenting on an old thread, but if you're on homebrew, the simplest command is something like |
@mehta Cheers. Worked for me on High Sierra |
@mehta worked for me. |
@bf4 's solution works for me, thanks @bf4 . I met this problem after homebrew upgrading the readline from 7.0.5 to 8.0.
I use
|
If you use rvm you can equally run |
@mehta the real MVP, this worked for me |
Same problem as @baurine in that some library is looking for libreadline.7.dylib even after I upgraded to readline 8. So I used
I'm not proud but it works. |
@itcentralstation this worked for me! Thanks 👍 |
same as @coisnepe - had to use 7:
|
@mehta Man of the hour! |
@itcentralstation This worked for me! Thanks! |
@davidcpell thanks mate, worked well :D |
@mehta - This solution is absolutely right. All you need is locate libreadline.dylib in your macOS system (I am using macports). Probably libreadline.dylib is symlink to another libreadline library. In my case it is libreadline.8.0.dylib. So in same dir where is this file create symlink: Now byebug starts to work |
Thank you! I just needed to change the symlink to point to |
I changed the version with like it |
@mothule - On mac you should use brew or macports. The key is in "missing file" or "missing link" which solve at general the problem. |
I ran into this issue today and it appears that the problem for me was that a recent update for XCode failed. Reinstalling a fresh version of XCode and then reinstalling the Ruby version worked for me. |
Originally posted by @Schwad in #289 (comment)
Would it make sense to add it as a dependency of |
We tried that for a while but that caused problems for non windows users. I'll try to migrate to use the brand new pury ruby readline implementation that ruby 2.7 will use by default: reline. |
how @DoNalD-S said you can just reinstall Ruby 👌
|
@mehta you legend 🙏 |
On OSX:
Then look for the installed version of readline's libreadline.X.X.dylib library. For illustration through example, this is what I saw:
Then just
And then you can create the symlink you need for your missing library. For me, that the original error was
And like magic - it's fixed!! Thank you @mehta !!! |
I started encountering this issue inside a Rails app with byebug 9.0.5 and Ruby 2.2.5. Didn't change either Rails or Ruby after installing byebug. One day it worked fine, the next I couldn't boot the Rails app due to this issue. I'm really curious if there's any other solution than reinstalling that Ruby version.
It's honestly a little odd, I don't remember needing to do anything special with Rubies on prior versions of byebug so I'm thinking this might be less straightforward than it appears perhaps. In any case this issue should help others since I couldn't find any exact matches on Google for this exact error message.
The text was updated successfully, but these errors were encountered: