Я добавляю gem "devise" в приложение rails, затем запускаю "bundle install", и он показывает ошибку, подобную этой:
/ home / hoanglien / .rbenv / version / 2.5.1/lib/ruby/gems/2.5.0/gems/bootstrap-sass-3.3.7/lib/bootstrap-sass/version.rb:2: предупреждение: уже инициализированная константа Bootstrap :: VERSION
/ home / hoanglien /.rbenv / версии / 2.5.1 / lib / ruby / gems / 2.5.0 / gems / bootstrap-4.3.1 / lib / bootstrap / version.rb: 4: предупреждение: предыдущее определение VERSION было здесь
/ home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootstrap-sass-3.3.7/lib/bootstrap-sass/version.rb:3: предупреждение: уже инициализированная константа Bootstrap:: BOOTSTRAP_SHA
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootstrap-4.3.1/lib/bootstrap/version.rb:5: предупреждение:предыдущее определение BOOTSTRAP_SHA было здесь
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:206: в спасении в _decrypt: ActiveSupport :: MessageEncryptor :: InvalidMessage
(ActiveSupport :: MessageEncryptor :: InvalidMessage) из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:183:in `_decrypt 'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/message_encryptor.rb:157:in 'decrypt_and_verify' из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/messages/rotator.rb:21:in 'decrypt_and_verify' из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_file.rb:79:in расшифровывать с
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_file.rb:42:in 'read' от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/encrypted_configuration.rb:21:in прочитано с
/ home / hoanglien / .rbenv / версии / 2.5.1 / lib / ruby / gems / 2.5.0 / gems / activesupport-5.2.3 / lib / active_support / encrypted_configuration.rb: 33: в «config» из
/ home /hoanglien / .rbenv / версии / 2.5.1 / lib / ruby / gems / 2.5.0 / gems / activesupport-5.2.3 / lib / active_support / encrypted_configuration.rb: 38: в «настройках» из
/ home /hoanglien / .rbenv / версии / 2.5.1 / lib / ruby / gems / 2.5.0 / gems / activesupport-5.2.3 / lib / active_support / core_ext / module / Delegation.rb: 271: в методе_missing от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/devise-4.6.2/lib/devise/secret_key_finder.rb:24:in 'key_exists?'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/devise-4.6.2/lib/devise/secret_key_finder.rb:10:in 'find'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/devise-4.6.2/lib/devise/rails.rb:37:in 'блока в'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in' instance_exec'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in' запуститьБлок из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in 'в run_initializers 'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:228:in
' блок в tsort_each 'из
/ home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:350:in
block (2 уровня) в каждом_strongly_connected_component 'из
/home/hoanglien/.rbenv/версии / 2.5.1 / Библиотека / рубин / 2.5.0 / tsort.rb: 431: яn
each_strongly_connected_component_from 'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:349:in
в каждом_strongly_connected_component' из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:347:in
каждый с
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:347:in
позвонить с
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:347:in
each_strongly_connected_component 'от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:226:in
tsort_each 'от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/tsort.rb:205:in
tsort_each 'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in
run_initializer 'от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/railties-5.2.3/lib/rails/application.rb:361:in
инициализации! от
/home/hoanglien/Rails/dating-app/config/environment.rb:5:in '
от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in
требуют от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in
блок в require_with_bootsnap_lfi 'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in
зарегистрироваться от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in
require_with_bootsnap_lfi 'от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in
требуют от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in в блоке require 'from
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in load_dependency 'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in require 'из
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:102:in
предварительная нагрузка от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in
служить от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in
блок на ходу 'от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in
петля 'от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in
беги от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in
с
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
требуют от
/home/hoanglien/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in
требуют 'от -e: 1: в' **
В моем гемфайле:
"https://rubygems.org" git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby "2.5.1"
gem "rails", "~>5.2.3"
gem "puma", "~> 3.11"
gem "mysql2", ">= 0.4.4", "< 0.6.0"
gem "sass-rails", "~> 5.0"
gem "uglifier", ">= 1.3.0"
gem "turbolinks", "~> 5"
gem "jbuilder", "~> 2.5"
gem "bootstrap", "~> 4.0"
gem "bootstrap-sass", "3.3.7"
gem "jquery-rails", "~> 4.3", ">= 4.3.1"
gem "bootsnap", ">= 1.1.0", require: false
gem "i18n"
gem "i18n-js"
gem "config"
gem "devise"
group :development, :test do
gem "byebug", platforms: [:mri, :mingw, :x64_mingw]
end
group :development do
gem "web-console", ">= 3.3.0"
gem "listen", ">= 3.0.5", "< 3.2"
gem "spring"
gem "spring-watcher-listen", "~> 2.0.0"
end
group :test do
gem "capybara", ">= 2.15"
gem "selenium-webdriver"
gem "chromedriver-helper"
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
end