samvera-deprecated / geo_concerns

PCDM based geospatial models for Hydra
Apache License 2.0
3 stars 4 forks source link

readline was required for the test app #289

Open carolyncole opened 7 years ago

carolyncole commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

@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.