Skip to content
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

readline was required for the test app #289

Open
carolyncole opened this issue Jan 19, 2017 · 2 comments
Open

readline was required for the test app #289

carolyncole opened this issue Jan 19, 2017 · 2 comments

Comments

@carolyncole
Copy link

I got the following error when I tried to run rake engine_cart:generate

Use `bundle show [gemname]` to see where a bundled gem is installed.
    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.
/Users/cam156/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require': dlopen(/Users/cam156/.rbenv/versions/2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)
  Referenced from: /Users/cam156/.rbenv/versions/2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle
  Reason: image not found - /Users/cam156/.rbenv/versions/2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle

To get around it I had to add spec.add_development_dependency 'rb-readline' to the gemspec

@afred
Copy link
Contributor

afred commented Jan 19, 2017

hmm.. I don't think i had this problem when setting up my local GeoConcerns app. However, I think I've run into this before with other projects, and had to use rb-readline gem. I'm guessing this installs Readline on your system when you run bundle install? And then once you do it once, you don't have to do it again?

@carolyncole
Copy link
Author

@afred if you have installed readline on your system for another gem you would not need the update. I am not 100% sure why I ran into it here and not in sufia. What I did to get around it is only one possible way. Just installing readline-dev is another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants