ku1ik / rainbow

Ruby gem for colorizing printed text on ANSI terminals
MIT License
813 stars 68 forks source link

Doesn't work with ruby2.4 on linux #47

Closed skatkov closed 7 years ago

skatkov commented 7 years ago

Trying to install rainbow with rubocop and ruby2.4. Here is what i get in the end:

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

    can't modify frozen String

Gem files will remain installed in
/home/ubuntu/inboundsms/vendor/bundle/ruby/2.4.0/gems/rainbow-2.2.1 for
inspection.
Results logged to
/home/ubuntu/inboundsms/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0-static/rainbow-2.2.1/gem_make.out

An error occurred while installing rainbow (2.2.1), and Bundler cannot
continue.
Make sure that `gem install rainbow -v '2.2.1'` succeeds before bundling.
skatkov commented 7 years ago

After some digging, this is not related to linux and this gem.

I changed to stable version of bundler and everything works!

Nowaker commented 7 years ago

@skatkov What version of bundler did you use, and what version did you update to? Getting the same error.

skatkov commented 7 years ago

@Nowaker current version that works: Bundler version 1.13.7 I'm not sure which version i've used before, but i've used pre-release version with gem install bundler --pre probably bundler-1.14.3