2016-11-18 7 views
15

मैं चलाने का प्रयास मेरी rails c लेकिन किसी कारण से, मैं इस त्रुटि मिलती है:लाइब्रेरी लोड नहीं: /usr/local/opt/readline/lib/libreadline.6.dylib (LoadError)

https://gist.github.com/anonymous/166713e8cde860fb188a8dffb98a1563

ᐅ rails c 
Running via Spring preloader in process 6609 
/Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require': dlopen(/Users/zulhilmi/.rvm/rubies/ruby-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/zulhilmi/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle 
    Reason: image not found - /Users/zulhilmi/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require' 
    from /Users/zulhilmi/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/irb/completion.rb:10:in `<top (required)>' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/railties-4.2.6/lib/rails/commands/console.rb:3:in `<top (required)>' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:123:in `require_command!' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:58:in `console' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require' 
    from /Users/zulhilmi/hello_gold/cws/bin/rails:8:in `<top (required)>' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `block in load' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency' 
    from /Users/zulhilmi/.rvm/gems/[email protected]/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:268:in `load' 
    from /Users/zulhilmi/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
    from /Users/zulhilmi/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
    from -e:1:in `<main>’ 

अब मुझे क्या करना चाहिए?

उत्तर

0

इस प्रश्न का उत्तर यहां दिया गया है, इस लिंक को देखें, rails c not working in rails 5 मैंने इसे अपने ढेर समूह में भी उत्तर दिया।

ln -s /usr/local/opt/readline/lib/libreadline.7.0.dylib /usr/local/opt/readline/lib/libreadline.6.dylib 

धन्यवाद शॉन विल्सन:

89

यह आदेश मेरी समस्या को ठीक।

+1

साझा करने कि – ALFmachine

+3

सरल एक पंक्ति का आकलन के लिए बहुत धन्यवाद काम किया। साझा करने के लिए धन्यवाद ... मुझे बालों को फाड़ने से बचाया;) – Marcus

+0

बढ़िया, धन्यवाद, मेरे लिए काम करता है! –

4

अपने Gemfile को यह मणि जोड़ें और bundle install चलाएँ:

gem 'rb-readline' 
संबंधित मुद्दे