@Serggei

После смены убунту 14 на убунту 18 перестал запускаться bundler что делать?

sf@Nout02:~/railsprojects/lechrpt$ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/.........
--- ERROR REPORT TEMPLATE -------------------------------------------------------
# Error Report
  • Вопрос задан
  • 100 просмотров
Пригласить эксперта
Ответы на вопрос 2
1. Нужно содержимое Gemfile.
2. Прежняя архитектура и нынешняя одинаковы? Обе x64?
Обычно при обновлении версии ОС меняются номера версий системных библиотек, от которых зависят gem (mysql и подобные). Поэтому требуется переустановить таковые, один за другим. Требуется некоторое понимание в пакетах Линукса.
Ещё версии bundler могут быть разными и в конце Gemfile.lock можно убрать секцию с указанием той версии.
Ответ написан
Комментировать
@Serggei Автор вопроса
Спасибо за ответ. Оказалось, не был установлен Git. Но появилась другая напасть - в браузере ошибка 404 Not Found и никаких комментариев. Использую Nginx+Passenger.
Gemfile:
source 'https://rubygems.org'
ruby '2.4.2'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end

# June_20
#gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.4'

#June2020 gem 'rails', '~> 5.2.3'
#gem 'rails' 5.2.3

# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
#gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

gem 'devise'
gem 'pg'
gem 'cancancan', '~> 2.0'
gem 'kaminari'
gem 'ransack', github: 'activerecord-hackery/ransack'
gem 'growlyflash'
gem 'cocoon'
gem 'select2-rails'
gem 'sablon'
gem 'rubyzip', '>= 1.2.1'
gem 'axlsx', git: 'https://github.com/randym/axlsx.git', ref: '776037c0fc799bb09da8c9ea47980bd3bf296874'
gem 'axlsx_rails'
gem 'pandoc-ruby'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
end

group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'meta_request'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы