捆绑安装错误 – 您的捆绑包仅支持平台[],但您的本地平台是[“ruby”,“x86_64-linux”]

前端之家收集整理的这篇文章主要介绍了捆绑安装错误 – 您的捆绑包仅支持平台[],但您的本地平台是[“ruby”,“x86_64-linux”]前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在进行捆绑安装时出现此错误;谷歌似乎是一个常见的问题,但我似乎无法找到修复(似乎建议在Gemfile.lock,但我把该文件移动到另一个目录)
# bundle install

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

这是我的Gemfile,目录中没有Gemfile.lock.

[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',: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

解决方法

我能够解决issue / w bundle install –no-deployment选项

猜你在找的Ruby相关文章