Add x64_mingw to Gemfile platforms
Default Gemfile specifies platforms for rmagick, and database adapter gems. When using Windows, Ruby 2.2.4x64, bundler 1.11;
bundle platform returns:
Your platform is x64-mingw32
bundle install does not install rmagick or database adapter gems because this platform is not included in Gemfile.
When i add @:x64_mingw" to platforms, bundler now sees and installs these gems.
So my Gemfile is like;
platforms :mri, :mingw, :x64_mingw do # Optional gem for exporting the gantt to a PNG file, not supported with jruby group :rmagick do # RMagick 2 supports ruby 1.9 # RMagick 1 would be fine for ruby 1.8 but Bundler does not support # different requirements for the same gem on different platforms gem "rmagick", (RUBY_VERSION < "1.9" ? "2.13.3" : ">= 2.0.0") end # Optional Markdown support, not for JRuby group :markdown do # TODO: upgrade to redcarpet 3.x when ruby1.8 support is dropped gem "redcarpet", "~> 2.3.0" end end
.. gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw, :x64_mingw] ..
Updated by Toshi MARUYAMA about 7 years ago
- Status changed from New to Closed
- Resolution set to Invalid
If you say about Redemine 2.6, it won't fix because many users claims "x64_mingw" (#19172).
Updated by Bahri Yardim about 7 years ago
Thanks for quick update. Yeah i have noticed that this is added in 3.2.0 however problem exists in previous installations (2.6). I have too many different installations and sometimes get confused about versions and dependencies and stuff. Sorry for that.