运行puma服务器时出现奇怪的错误。以前它在我访问普通页面时工作正常,并且当我尝试注册用户时仅发生错误。现在,当启动puma服务器时,它说
无法加载应用程序:LoadError:不兼容的库版本 - /home/bed/.rvm/gems/ruby-2.3.0/gems/bcrypt-3.1.10/lib/bcrypt_ext.so
Gemfile:
source 'https://rubygems.org'
ruby '2.3.0'
gem 'rails', '4.2.4'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'bcrypt'
group :development do
gem 'web-console', '~> 2.0'
gem 'spring'
gem 'better_errors'
gem 'hub', :require=>nil
gem 'quiet_assets'
gem 'rails_layout'
gem 'spring-commands-rspec'
end
group :development, :test do
gem 'faker'
gem 'pry-rails'
gem 'pry-rescue'
gem 'rspec-rails' # installs RSpec gems with support for Rails
gem 'factory_girl_rails' # creates test data
gem 'rubocop'
gem 'byebug'
end
group :test do
gem 'capybara' # test web pages
gem 'database_cleaner' # clean slate for db
gem 'launchy' # view errors in browser
gem 'selenium-webdriver' # for test that require js
end
group :production do
gem 'rails_12factor'
end
# Custom added Gems
# ---- START ----
gem "administrate", github: "mariochavez/administrate", branch: "remove-inline_svg"
gem 'bootstrap-sass'
gem 'devise'
gem 'devise_invitable'
gem 'figaro'
gem 'high_voltage'
gem 'pg'
gem 'puma'
gem 'pundit'
gem 'simple_form'
gem 'slim-rails'
gem 'mandrill-api'
gem 'annotate'
# Omniauth
gem 'omniauth-github'
# ---- END ----
答案 0 :(得分:9)
请先卸载bcrypt
gem,然后运行bundle install
。