gem 32 位和 64 位 Ruby 的 tzinfo 数据平台 windows
Platform of gem tzinfo-data for both 32bit and 64bit Ruby on windows
我们的开发计算机同时安装了 32 位和 64 位ruby
。 tzinfo-data
需要指定炸毁 Rails 4.2 应用程序的平台。
对于 64 位 ruby,Gemfile
有:
gem 'tzinfo-data', platforms: [:x64_mingw, :mingw, :mswin]
对于 32 位 ruby,`Gemfile' 具有:
gem 'tzinfo-data', platforms: [:mingw_20, :mingw, :mswin]
如果 运行 32 位 ruby 64 位平台或 vise verse,应用程序会崩溃。
如何指定同时适用于 32 位和 64 位的平台ruby?
这应该适用于 32 位和 64 位 Ruby:
gem 'tzinfo-data', platforms: [:x64_mingw, :mingw, :mswin]
您也可以完全删除 platforms
选项:
gem 'tzinfo-data'
确保您已 运行 bundle update
命令与您的 32 位和 64 位 Ruby 版本一起安装 tzinfo-data gem进入 Ruby 安装。
有关 platforms
选项的更多信息,请参阅 Gemfile manual page。
我们的开发计算机同时安装了 32 位和 64 位ruby
。 tzinfo-data
需要指定炸毁 Rails 4.2 应用程序的平台。
对于 64 位 ruby,Gemfile
有:
gem 'tzinfo-data', platforms: [:x64_mingw, :mingw, :mswin]
对于 32 位 ruby,`Gemfile' 具有:
gem 'tzinfo-data', platforms: [:mingw_20, :mingw, :mswin]
如果 运行 32 位 ruby 64 位平台或 vise verse,应用程序会崩溃。
如何指定同时适用于 32 位和 64 位的平台ruby?
这应该适用于 32 位和 64 位 Ruby:
gem 'tzinfo-data', platforms: [:x64_mingw, :mingw, :mswin]
您也可以完全删除 platforms
选项:
gem 'tzinfo-data'
确保您已 运行 bundle update
命令与您的 32 位和 64 位 Ruby 版本一起安装 tzinfo-data gem进入 Ruby 安装。
有关 platforms
选项的更多信息,请参阅 Gemfile manual page。