I am getting strange error when running puma server. Previously it was working fine when I visit the normal page and the error only occured when I try to register a user. Now when starting the puma server it says
我在运行puma服务器时出现了奇怪的错误。以前,当我访问正常页面时,它工作得很好,只有当我尝试注册一个用户时才会出现错误。现在,当启动puma服务器时,它说
Unable to load application: LoadError: incompatible library version - /home/bed/.rvm/gems/ruby-2.3.0/gems/bcrypt-3.1.10/lib/bcrypt_ext.so
无法加载应用程序:LoadError:不兼容的库版本- /home/bed/.rvm/gems/ruby-2.3.0/gems/bcrypt- 3.10 /lib/ bcrypt_extso
Gemfile:
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 ----
1 个解决方案
#1
7
Please uninstall the bcrypt
gem at first, then run bundle install
.
请先卸载bcrypt gem,然后运行bundle安装。
#1
7
Please uninstall the bcrypt
gem at first, then run bundle install
.
请先卸载bcrypt gem,然后运行bundle安装。