Ruby on rails 损坏的文件。锁

Ruby on rails 损坏的文件。锁,ruby-on-rails,ruby,nginx,Ruby On Rails,Ruby,Nginx,我已经在Windows上使用Ruby Mine构建了我的rails应用程序(我知道这并不理想),目前正试图将其部署到Ubuntu服务器上 以下内容与本指南一起提供: 我正在尝试使用以下命令安装任何gemfile依赖项: bundle install --deployment --without development test 但我一直收到以下错误: 您的Gemfile.lock已损坏。依赖项部分缺少以下gem:“nokogiri” 档案: source 'https://rubygems.

我已经在Windows上使用Ruby Mine构建了我的rails应用程序(我知道这并不理想),目前正试图将其部署到Ubuntu服务器上

以下内容与本指南一起提供:

我正在尝试使用以下命令安装任何gemfile依赖项:

bundle install --deployment --without development test 
但我一直收到以下错误:

您的Gemfile.lock已损坏。依赖项部分缺少以下gem:“nokogiri”

档案:

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.1'
# Use mysql as the database for Active Record
gem 'mysql2', '>= 0.3.18', '< 0.5'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
#gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# 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

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platform: :mri
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'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
源代码'https://rubygems.org'
git_源(:github)do | repo_名称|
repo_name=“#{repo_name}/#{repo_name}”除非repo_name.include?(“/”)
"https://github.com/#{repo_name}.git“
结束
#捆绑边缘Rails:gem'Rails',github'Rails/Rails'
gem'rails',“~>5.0.1”
#使用mysql作为活动记录的数据库
gem'mysql2','>=0.3.18','<0.5'
#使用Puma作为应用程序服务器
宝石“彪马”,“~>3.0”
#将SCS用于样式表
gem'sass-rails',“~>5.0”
#使用Uglifier作为JavaScript资产的压缩器
gem'uglifier','>=1.3.0'
#将CoffeeScript用于.coffee资产和视图
gem“咖啡轨”,“~>4.2”
#看https://github.com/rails/execjs#readme 获取更多受支持的运行时
#宝石“therubyracer”,平台::ruby
#使用jquery作为JavaScript库
gem'jqueryrails'
#Turbolinks使web应用程序的导航速度更快。阅读更多:https://github.com/turbolinks/turbolinks
gem“涡轮链接”,“大于5”
#轻松构建JSON API。阅读更多:https://github.com/rails/jbuilder
gem'jbuilder',“~>2.5”
#使用Redis适配器在生产中运行操作电缆
#gem'redis',“~>3.0”
#使用ActiveModel具有\u安全\u密码
#gem'bcrypt',“~>3.1.7”
#使用Capistrano进行部署
#gem“capistrano rails”,集团::开发
小组:开发,:测试
#在代码中的任意位置调用“byebug”以停止执行并获得调试器控制台
gem'byebug',平台::mri
结束
小组:发展怎么办
#在异常页面上或通过使用代码中的任意位置访问IRB控制台。
gem“web控制台”,“>=3.3.0”
结束
#Windows不包括zoneinfo文件,因此捆绑tzinfo数据
gem'tzinfo data',平台:[:mingw,:mswin,:x64_mingw,:jruby]
Gemfile.Lock:

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (5.0.4)
      actionpack (= 5.0.4)
      nio4r (>= 1.2, < 3.0)
      websocket-driver (~> 0.6.1)
    actionmailer (5.0.4)
      actionpack (= 5.0.4)
      actionview (= 5.0.4)
      activejob (= 5.0.4)
      mail (~> 2.5, >= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (5.0.4)
      actionview (= 5.0.4)
      activesupport (= 5.0.4)
      rack (~> 2.0)
      rack-test (~> 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.2)
    actionview (5.0.4)
      activesupport (= 5.0.4)
      builder (~> 3.1)
      erubis (~> 2.7.0)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0, >= 1.0.3)
    activejob (5.0.4)
      activesupport (= 5.0.4)
      globalid (>= 0.3.6)
    activemodel (5.0.4)
      activesupport (= 5.0.4)
    activerecord (5.0.4)
      activemodel (= 5.0.4)
      activesupport (= 5.0.4)
      arel (~> 7.0)
    activesupport (5.0.4)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (~> 0.7)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
    arel (7.1.4)
    bindex (0.5.0)
    builder (3.2.3)
    coffee-rails (4.2.2)
      coffee-script (>= 2.2.0)
      railties (>= 4.0.0)
    coffee-script (2.4.1)
      coffee-script-source
      execjs
    coffee-script-source (1.12.2)
    concurrent-ruby (1.0.5)
    erubis (2.7.0)
    execjs (2.7.0)
    globalid (0.4.0)
      activesupport (>= 4.2.0)
    i18n (0.8.4)
    jbuilder (2.7.0)
      activesupport (>= 4.2.0)
      multi_json (>= 1.2)
    jquery-rails (4.3.1)
      rails-dom-testing (>= 1, < 3)
      railties (>= 4.2.0)
      thor (>= 0.14, < 2.0)
    loofah (2.0.3)
      nokogiri (>= 1.5.9)
    mail (2.6.6)
      mime-types (>= 1.16, < 4)
    method_source (0.8.2)
    mime-types (3.1)
      mime-types-data (~> 3.2015)
    mime-types-data (3.2016.0521)
    mini_portile2 (2.2.0)
    minitest (5.10.2)
    multi_json (1.12.1)
    mysql2 (0.4.7-x86-mingw32)
    nio4r (2.1.0)
    nokogiri (1.8.0-x86-mingw32)
      mini_portile2 (~> 2.2.0)
    puma (3.9.1)
    rack (2.0.3)
    rack-test (0.6.3)
      rack (>= 1.0)
    rails (5.0.4)
      actioncable (= 5.0.4)
      actionmailer (= 5.0.4)
      actionpack (= 5.0.4)
      actionview (= 5.0.4)
      activejob (= 5.0.4)
      activemodel (= 5.0.4)
      activerecord (= 5.0.4)
      activesupport (= 5.0.4)
      bundler (>= 1.3.0, < 2.0)
      railties (= 5.0.4)
      sprockets-rails (>= 2.0.0)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.0.3)
      loofah (~> 2.0)
    railties (5.0.4)
      actionpack (= 5.0.4)
      activesupport (= 5.0.4)
      method_source
      rake (>= 0.8.7)
      thor (>= 0.18.1, < 2.0)
    rake (12.0.0)
    sass (3.4.24)
    sass-rails (5.0.6)
      railties (>= 4.0.0, < 6)
      sass (~> 3.1)
      sprockets (>= 2.8, < 4.0)
      sprockets-rails (>= 2.0, < 4.0)
      tilt (>= 1.1, < 3)
    sprockets (3.7.1)
      concurrent-ruby (~> 1.0)
      rack (> 1, < 3)
    sprockets-rails (3.2.0)
      actionpack (>= 4.0)
      activesupport (>= 4.0)
      sprockets (>= 3.0.0)
    thor (0.19.4)
    thread_safe (0.3.6)
    tilt (2.0.7)
    turbolinks (5.0.1)
      turbolinks-source (~> 5)
    turbolinks-source (5.0.3)
    tzinfo (1.2.3)
      thread_safe (~> 0.1)
    tzinfo-data (1.2017.2)
      tzinfo (>= 1.0.0)
    uglifier (3.2.0)
      execjs (>= 0.3.0, < 3)
    web-console (3.5.1)
      actionview (>= 5.0)
      activemodel (>= 5.0)
      bindex (>= 0.4.0)
      railties (>= 5.0)
    websocket-driver (0.6.5)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.2)

PLATFORMS
  x86-mingw32

DEPENDENCIES
  byebug
  coffee-rails (~> 4.2)
  jbuilder (~> 2.5)
  jquery-rails
  mysql2 (>= 0.3.18, < 0.5)
  puma (~> 3.0)
  rails (~> 5.0.1)
  sass-rails (~> 5.0)
  turbolinks (~> 5)
  tzinfo-data
  uglifier (>= 1.3.0)
  web-console (>= 3.3.0)

BUNDLED WITH
   1.15.1
GEM
远程:https://rubygems.org/
规格:
actioncable(5.0.4)
actionpack(=5.0.4)
nio4r(>=1.2,<3.0)
websocket驱动程序(~>0.6.1)
actionmailer(5.0.4)
actionpack(=5.0.4)
actionview(=5.0.4)
活动作业(=5.0.4)
邮件(~>2.5,>=2.5.4)
rails dom测试(~>2.0)
actionpack(5.0.4)
actionview(=5.0.4)
主动支持(=5.0.4)
机架(~>2.0)
机架测试(~>0.6.3)
rails dom测试(~>2.0)
rails html消毒剂(~>1.0,>=1.0.2)
actionview(5.0.4)
主动支持(=5.0.4)
生成器(~>3.1)
erubis(~>2.7.0)
rails dom测试(~>2.0)
rails html消毒剂(~>1.0,>=1.0.3)
activejob(5.0.4)
主动支持(=5.0.4)
globalid(>=0.3.6)
activemodel(5.0.4)
主动支持(=5.0.4)
activerecord(5.0.4)
activemodel(=5.0.4)
主动支持(=5.0.4)
arel(~>7.0)
activesupport(5.0.4)
并发ruby(~>1.0,>=1.0.2)
i18n(~>0.7)
小型试验(~>5.1)
tzinfo(~>1.1)
arel(7.1.4)
bindex(0.5.0)
建造商(3.2.3)
咖啡轨(4.2.2)
咖啡脚本(>=2.2.0)
钢轨(>=4.0.0)
咖啡脚本(2.4.1)
咖啡脚本源
execjs
coffee脚本源代码(1.12.2)
并发ruby(1.0.5)
erubis(2.7.0)
execjs(2.7.0)
globalid(0.4.0)
activesupport(>=4.2.0)
i18n(0.8.4)
jbuilder(2.7.0)
activesupport(>=4.2.0)
multi_json(>=1.2)
jquery rails(4.3.1)
rails dom测试(>=1,<3)
钢轨(>=4.2.0)
雷神(>=0.14,<2.0)
丝瓜(2.0.3)
nokogiri(>=1.5.9)
邮件(2.6.6)
mime类型(>=1.16,<4)
方法_来源(0.8.2)
mime类型(3.1)
mime类型数据(~>3.2015)
mime类型数据(3.2016.0521)
迷你端口2(2.2.0)
小型试验(5.10.2)
多线程json(1.12.1)
mysql2(0.4.7-x86-mingw32)
nio4r(2.1.0)
nokogiri(1.8.0-x86-mingw32)
迷你端口2(~>2.2.0)
美洲狮(3.9.1)
机架(2.0.3)
机架测试(0.6.3)
机架(>=1.0)
轨道(5.0.4)
行动电缆(=5.0.4)
actionmailer(=5.0.4)
actionpack(=5.0.4)
actionview(=5.0.4)
活动作业(=5.0.4)
activemodel(=5.0.4)
activerecord(=5.0.4)
主动支持(=5.0.4)
捆绑机(>=1.3.0,<2.0)
栏杆(=5.0.4)
链轮轨道(>=2.0.0)
rails dom测试(2.0.3)
activesupport(>=4.2.0)
nokogiri(>=1.6)
rails html消毒剂(1.0.3)
丝瓜(~>2.0)
栏杆(5.0.4)
actionpack(=5.0.4)
主动支持(=5.0.4)
方法u源
耙(大于等于0.8.7)
雷神(>=0.18.1,<2.0)
耙(12.0.0)
sass(3.4.24)
sass导轨(5.0.6)
钢轨(>=4.0.0,<6)
sass(~>3.1)
链轮(>=2.8,<4.0)
链轮轨道(>=2.0,<4.0)
倾斜(>=1.1,<3)
链轮(3.7.1)
并发ruby(~>1.0)
机架(>1,<3)
链轮轨道(3.2.0)
actionpack(>=4.0)
activesupport(>=4.0)
链轮(>=3.0.0)
雷神(0.19.4)
螺纹安全(0.3.6)
倾斜(2.0.7)
涡轮链接(5.0.1)
TurboLink源(~>5)
turbolinks源(5.0.3)
tzinfo(1.2.3)
线程安全(~>0.1)
tzinfo数据(1.2017.2)
tzinfo(>=1.0.0)
丑八怪(3.2.0)
execjs(>=0.3.0,<3)
web控制台(3.5.1)
actionview(>=5.0)
activemodel(>=5.0)
bindex(>=0.4.0)
钢轨(>=5.0)
websocket驱动器(0.6.5)
websocket扩展(>=0.1.0)
websocket扩展(0.1.2)
平台
x86-w32
依赖关系
比伯
咖啡轨(~>4.2)
jbuilder(~>2.5)
jquery rails
mysql2(>=0.3.18,<0.5)
美洲狮(~>3.0)
轨道(~>5.0.1)
sass轨道(~>5.0)
屠
bundle lock --remove-platform x86-mingw32
lock --add-platform x86_64-linux