Vote #76086
完了"gem update bundler" suggestion for "`x64_mingw` is not a valid platform"
0%
説明
I just tried to install Redmine 3.0.0 on Debian 7.8 and
bundle install --without development test rmagick
died with
`x64_mingw` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :ruby_20, :mri, :mri_18, :mri_19, :mri_20, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19, :mingw_20
After I removed all occurrences of @x64_mingw@ from the Gemfile, @bundle install@ completed without an error.
I run @ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]@.
journals
Same output: message#45759.
Could you try this command and give me output?
<pre>
$ bundle --version
Bundler version 1.7.7
</pre>
And could you try this command?
<pre>
$ gem update bundler
</pre>
--------------------------------------------------------------------------------
Toshi MARUYAMA wrote:
> And could you try this command?
>
> [...]
Thanks - this one was working well for me!
--------------------------------------------------------------------------------
":x64_mingw" is defined in bundler 1.4.0.rc.1.
https://github.com/bundler/bundler/blob/master/CHANGELOG.md#140rc1-2013-09-29
> add support for the x64-mingw32 platform
https://github.com/bundler/bundler/pull/2590/files#diff-76f6360610f33190a6dd9c84ceb86b91R27
"stackoverflow":http://stackoverflow.com/questions/18383402/how-to-specify-minimum-bundler-version-for-gemfile suggests adding check in Gemfile.
Redmine 1.4 uses similar check.
source:tags/1.4.0/config/preinitializer.rb#L9
Bundler did not release 1.4.0, so do we need to suggest using 1.5.0?
Top of Gemfile:
<pre><code class="ruby">
if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.5.0')
abort "Redmine requires Bundler 1.5.0 (you're using #{Bundler::VERSION}).\nPlease update with 'gem update bundler'."
end
</code></pre>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Toshi MARUYAMA wrote:
> "stackoverflow":http://stackoverflow.com/questions/18383402/how-to-specify-minimum-bundler-version-for-gemfile suggests adding check in Gemfile.
That's what I would have expected from gem/the Gemfile. It would take away a lot of frustration from administrators that are not ultimately comfortable with the Ruby tool chain.
Sorry, I tried to upgrade a production system so I can only check this next time I try it (we had another issue with a incompatible plugin…). But @gem update bundler@ sound reasonable.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,30353,Installing rails with Bundler 2.0 fails in 3.x
duplicates,Closed,19192,"rake" command is showing error, `x64_mingw` is not a valid platform.