LoadError: libncursesw.so.5: cannot open shared objects file: no such file or directory

I use Ruby 2.2.2 with Rails 4.2 when I try to run any rake task, I have this error message why is this? so what can I do?

  • Ruby 2.2.2
  • Rails 4.2
  • rbenv
  • Arch linux
  • PostgreSQL Database

error message

rake aborted! LoadError: libncursesw.so.5: cannot open shared object file: No such file or directory - /home/adham/.rbenv/versions/2.2.2/lib/ruby/2.2.0/x86_64-linux/readline.so /home/adham/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `require' /home/adham/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:76:in `block (2 levels) in require' /home/adham/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `each' /home/adham/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:72:in `block in require' /home/adham/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `each' /home/adham/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler/runtime.rb:61:in `require' /home/adham/.gem/ruby/2.2.0/gems/bundler-1.10.6/lib/bundler.rb:134:in `require' /home/code/kahareb/config/application.rb:7:in `<top (required)>' /home/code/kahareb/Rakefile:4:in `<top (required)>' (See full trace by running task with --trace)

+4
source share
1 answer

I had the same error message when I tried to run rails consoleafter the last update of Arch Linux, and I decided to reinstall ruby ​​(using rvm ). Try the following:

$ rvm reinstall 2.2.2
+6

Source: https://habr.com/ru/post/1610109/


All Articles