プロジェクト

全般

プロフィール

Vote #76086

完了

"gem update bundler" suggestion for "`x64_mingw` is not a valid platform"

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Gems support_45
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
45
version_id:
92
issue_org_id:
19172
author_id:
97714
assigned_to_id:
1
comments:
10
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
80
ステータス-->[Closed]

説明

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.

Admin Redmine さんが4年以上前に更新

  • カテゴリGems support_45 にセット
  • 対象バージョン3.0.1_92 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0