2016-11-16 98 views
5

當我在我的Ruby on Rails的運行rake db:create項目它給我的錯誤LoadError: incompatible library version - /home/tps/.rvm/gems/ruby-2.3.1/gems/puma-3.6.0/lib/puma/puma_http11.so不兼容的庫版本puma_http11.so

這裏到處是錯誤

[email protected]:~/sites/my_app$ rake db:create 
rake aborted! 
LoadError: incompatible library version - /home/tps/.rvm/gems/ruby- 2.3.1/gems/puma-3.6.0/lib/puma/puma_http11.so 
/home/tps/.rvm/gems/ruby-2.3.1/gems/puma-3.6.0/lib/puma/server.rb:15:in `require' 
/home/tps/.rvm/gems/ruby-2.3.1/gems/puma- 3.6.0/lib/puma/server.rb:15:in `<top (required)>' 
/home/tps/.rvm/gems/ruby-2.3.1/gems/puma-3.6.0/lib/puma.rb:14:in `require' 
/home/tps/.rvm/gems/ruby-2.3.1/gems/puma-3.6.0/lib/puma.rb:14:in `<top (required)>' 
/home/tps/sites/my_app/config/application.rb:7:in `<top (required)>' 
/home/tps/sites/my_app/Rakefile:4:in `<top (required)>' 
/home/tps/.rvm/gems/ruby-2.3.1/gems/rake-11.3.0/exe/rake:27:in `<top (required)>' 
(See full trace by running task with --trace) 

任何人都可以幫我嗎?

在此先感謝

+0

你以某種方式解決這個問題?我得到了同樣的問題 - 將Puma移動到Gem文件中的開發部分 - 但現在調用Rake,我得到了與其他寶石相同的問題... –

+0

@GeorgKeferböck我改變了我的ruby版本在gemfile中提及,並且問題解決了。 – ashvin

回答

1

試試這個(3.6.0版本):

寶石卸載彪馬

或者試試這個

寶石質樸 - 所有

+0

'gem pristine -all'在我的情況下工作... – user000001