Added troubleshooting for byebug without readline issue (#2481)

* Added troubleshooting for byebug withouout readline issue.

* Genericized version number for error/solution.
This commit is contained in:
Nick Taylor 2019-04-19 12:34:29 -04:00 committed by Ben Halpern
parent 27ea00e152
commit 9007b80356

View file

@ -42,6 +42,20 @@ For additional configuration, [click here](/additional-postgres-setup)
#### Possible Error Messages
**Error:** `rbenv: version '<version number>' is not installed (set by /Path/To/Local/Repository/.ruby-version)`
**_Solution:_** Run the command `rbenv install <version number>`
**Error:**
```bash
== Preparing database ==
Sorry, you can't use byebug without Readline. To solve this, you need to
rebuild Ruby with Readline support. If using Ubuntu, try `sudo apt-get
install libreadline-dev` and then reinstall your Ruby.
rails aborted!
LoadError: dlopen(/Users/nickytonline/.rbenv/versions/2.6.1/lib/ruby/2.6.0/x86_64-darwin18/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.<some version number>.dylib
```
**_Solution:_** Run `ln -s /usr/local/opt/readline/lib/libreadline.dylib /usr/local/opt/readline/lib/libreadline.<some version number>.dylib` from the command line then run `bin/setup` again. You may have a different version or libreadline, so replace `<some version number>` with the version that errored.
> If you encountered any errors that you subsequently resolved, **please consider updating this section** with your errors and their solutions.