Package installation error - your package only supports [] platforms, but your local platforms - ["ruby", "x86_64-linux"]

Getting this error when installing the package; google around seems like a common problem, but I can't find a fix (see suggestion on Gemfile.lock, but I moved this file to another directory)

# bundle install

Your bundle only supports platforms [] but your local platforms are ["ruby", "x86_64-linux"], and there no compatible match between those two lists.

Here is my Gemfile and there is no Gemfile.lock in the directory.

[root@ip-172-30-4-16 rails]# gem -v
2.6.11
[root@ip-172-30-4-16 rails]# ruby -v
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
[root@ip-172-30-4-16 rails]# bundle -v
Bundler version 1.14.6

[root@ip-172-30-4-16 rails]# cat Gemfile
source 'http://rubygems.org'

gem 'echoe'
gem 'rails', '~> 3.2.11'
gem 'mysql2'
gem 'prawn', '~> 0.5.0.1'
gem 'prawn-core', '~> 0.5.0.1', :require => 'prawn/core'
gem 'prawn-layout', '~> 0.2.0.1', :require => 'prawn/layout'
gem 'prawn-format', '~> 0.2.0.1', :require => 'prawn/format'
gem 'spreadsheet', '~> 0.6.5'
gem 'libxml-ruby', :require => 'libxml_ruby'
gem 'faker'
gem 'json'
gem 'rake'
gem 'jquery-rails'
gem 'therubyracer'
gem 'delayed_job_active_record'
gem 'daemons'
gem 'memcache-client'
gem 'rb-readline'
gem 'rubyzip', '~> 1.0.0'
gem 'zip-zip' # Rubyzip old API compatibility addon

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'
end

#group :development do
#  gem 'ruby-debug19'
#end

group :test do
  gem 'flexmock', '= 0.9.0'
  gem 'machinist', '= 2.0'
  gem 'test-unit', '~> 1.2.3'
  # Use SimpleCov and Coveralls for test coverage reports
  gem 'simplecov'
  gem 'coveralls'
end

group :production do
  gem 'passenger'
end

group :test, :development do
  gem 'rspec-rails', '~> 2.0'
end
+8
source share
3 answers

I managed to get around the issue / w option bundle install --no-deployment

+5
source

I had the same problem, I had to delete the directory .bundleand then bundle installworked.

+4
source

, @LightningStryk !

:

  1. rm -rf.bundle
  2. bundle install
0

Source: https://habr.com/ru/post/1015956/


All Articles