Sergei2020-06-20 22:21:55
Sergei, 2020-06-20 22:21:55

After changing ubuntu 14 to ubuntu 18, bundler stopped running, what should I do?

[email protected]:~/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

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Roman Mirilaczvili, 2020-06-21

1. You need the contents of a Gemfile.
2. Are the old architecture and the current one the same? Both x64?
Usually, when updating the OS version, the version numbers of the system libraries that the gem depends on (mysql and the like) change. Therefore, you need to reinstall those, one by one. Some understanding of Linux packages is required.
Also, bundler versions can be different, and at the end of Gemfile.lock, you can remove the section indicating that version.

Sergei, 2020-06-21

Thanks for the answer. It turned out that Git was not installed. But another misfortune appeared - a 404 Not Found error in the browser and no comments. I am using Nginx+Passenger.
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 "
# 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.
# 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.
# 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'
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'
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question