Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem::Ext::BuildError "can't modify frozen String" under Ruby v2.3.3 and bundler v1.14.2 #49

Closed
baburdick opened this issue Jan 23, 2017 · 8 comments

Comments

@baburdick
Copy link

I get a very terse error message when trying to bundle install rainbow v2.2.1 under Ruby v2.3.3.

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

    can't modify frozen String

Installing without bundler succeeds:

gem install rainbow -v '2.2.1'
@kevinelliott
Copy link

Same here under Ruby v2.4.0. Installing the gem directly first:

gem install rainbow -v '2.2.1'

and then updating with bundler will pass (since it's already installed to current gemset).

@Eiryyy
Copy link

Eiryyy commented Jan 24, 2017

Try:

gem update --system --no-doc

Everything's gonna be alright.

@olleolleolle
Copy link
Collaborator

olleolleolle commented Jan 25, 2017

rubygems/rubygems#1819 was the Rubygems change that fixed it.

@baburdick Is this closable, now?

This issue seems like a duplicate of #44

@PhilT
Copy link

PhilT commented Jan 25, 2017

Rubygems update fixed it for me

AlexWayfer added a commit to AlexWayfer/gorilla_patch that referenced this issue Jan 25, 2017
AlexWayfer added a commit to AlexWayfer/gorilla_patch that referenced this issue Jan 25, 2017
AlexWayfer added a commit to AlexWayfer/gorilla_patch that referenced this issue Jan 25, 2017
AlexWayfer added a commit to AlexWayfer/gorilla_patch that referenced this issue Jan 25, 2017
AlexWayfer added a commit to AlexWayfer/gorilla_patch that referenced this issue Jan 25, 2017
@mihaibb
Copy link

mihaibb commented Jan 28, 2017

gem update --system --no-doc worked for me

@baburdick
Copy link
Author

@olleolleolle: You can close it. Note that users of the latest stable RVM (v1.28.0) will be searching for this issue, as it ships with rubygems v2.4.8. RVM head has the update. But it hasn't moved to the stable series yet.

@baburdick
Copy link
Author

I may be wrong about that. I'm using Ruby v2.2.4 in this case, and likely installed by a prior version of RVM. Freshly installed Ruby v2.2.6 under RVM v1.28.0 installs rubygems v2.6.8.

yasaichi added a commit to yasaichi/grease that referenced this issue Jan 29, 2017
The following error occurs when installing rainbow gem:

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

    can't modify frozen String
```
ref. ku1ik/rainbow#49
v0dro added a commit to SciRuby/daru that referenced this issue Jan 30, 2017
v0dro added a commit to SciRuby/daru that referenced this issue Jan 30, 2017
v0dro added a commit to SciRuby/daru that referenced this issue Jan 31, 2017
* Update History file for new release

* version bump

* update rb-gsl dependency.

* update travis for ruby 2.4 support

* update travis config and GSL gem version.

* Install rainbow cuz of this rubygems error - ku1ik/rainbow#49

* Install rainbow cuz of this rubygems error - ku1ik/rainbow#49
yasaichi added a commit to yasaichi/gakubuchi that referenced this issue Jan 31, 2017
The following error occurs when installing rainbow gem:

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

    can't modify frozen String
```
ref. ku1ik/rainbow#49
yasaichi added a commit to yasaichi/gakubuchi that referenced this issue Jan 31, 2017
The following error occurs when installing rainbow gem:

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

    can't modify frozen String
```
ref. ku1ik/rainbow#49
@olleolleolle
Copy link
Collaborator

olleolleolle commented Feb 8, 2017

@baburdick A technical note: you can close your Issue. (I'm not allowed to.)

Glad you got it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants