LoginSignup
26
7

More than 5 years have passed since last update.

Bundler 1.14.0 で rainbow が `can't modify frozen String` と吐いてインストールできない

Last updated at Posted at 2017-01-21

簡単に言うと、rubygemsが原因らしいので gem update --system でなおる。

cf.

http://blog.rubygems.org/2017/01/20/2.6.9-released.html
https://github.com/sickill/rainbow/issues/48

This PR adds a missing #dup ("convert frozen string literal to a mutable String object instance") in the same way that 45966be did.

rubocopの依存なのでちょっとつらかった。

エラーメッセージ

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    can't modify frozen String

回避策として bundler のバージョンを 1.13.7 に下げても動くので場合によってはこちらも。

自分は解決策にたどり着くのに苦労したので時間の節約になれば :pray:

26
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
26
7