Skip to content
New issue

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

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

Already on GitHub? # to your account

Cannot install bundler & rake #56

Closed
phuongnd08 opened this issue Nov 28, 2011 · 11 comments
Closed

Cannot install bundler & rake #56

phuongnd08 opened this issue Nov 28, 2011 · 11 comments
Assignees
Labels
Bug Something isn't working

Comments

@phuongnd08
Copy link

We try to run this recipe on Ubuntu machine with this:

include_recipe "rvm::system"

and this node configuration:
"rvm": { "install_rubies": true, "rubies": ["1.9.2"] }

However, we are running into this:

rvm_gem[bundler] (/home/internal/chef-dir/cookbooks/rvm/providers/global_gem.rb line 76) had an error: Malformed version number string 1.10.0-pre

Perhaps this may help you imagine what happening:

[Mon, 28 Nov 2011 12:15:09 +0000] INFO: Processing rvm_gem[bundler] action install (/home/internal/chef-dir/cookbooks/rvm/providers/global_gem.rb line 76) [Mon, 28 Nov 2011 12:15:09 +0000] ERROR: rvm_gem[bundler] (/home/internal/chef-dir/cookbooks/rvm/providers/global_gem.rb line 76) has had an error [Mon, 28 Nov 2011 12:15:09 +0000] ERROR: rvm_global_gem[bundler] (rvm::system line 36) has had an error [Mon, 28 Nov 2011 12:15:09 +0000] ERROR: rvm_global_gem[bundler] (/home/internal/chef-dir/cookbooks/rvm/recipes/system.rb:36:in 'from_file') had an error: rvm_global_gem[bundler] (rvm::system line 36) had an error: rvm_gem[bundler] (/home/internal/chef-dir/cookbooks/rvm/providers/global_gem.rb line 76) had an error: Malformed version number string 1.10.0-pre /usr/local/lib/site_ruby/1.8/rubygems/version.rb:187:in 'initialize' /home/internal/chef-dir/cookbooks/rvm/libraries/chef_rvm_set_helpers.rb:6:in 'new' /home/internal/chef-dir/cookbooks/rvm/libraries/chef_rvm_set_helpers.rb:6:in 'rvm_do' /home/internal/chef-dir/cookbooks/rvm/libraries/rvm_rubygems_package.rb:52:in 'gem_paths'

Don't know why 1.10.0-pre is there, since the latest version of bundler should be '1.1.rc'

@bradphelan
Copy link
Contributor

+1 I get the same error.

@jgrevich
Copy link

me too, looks like it's not ready for the -pre tag

@bradphelan
Copy link
Contributor

I even tried explicitly

node['rvm']['global_gems'] = [
  { 'name'    => 'bundler', 
    'version' => '1.0.21'
  },
  { 'name'    => 'rake',
    'version' => '0.9.2'
  }
]

require_recipe "rvm::vagrant"
require_recipe "rvm::system"

which should override any other setting but still the same error

@fnichol
Copy link
Contributor

fnichol commented Nov 28, 2011

All right, I'm zeroing in. Looks like RVM is getting ready for version 1.10. Don't think the -pre has ever been used before so I'm tracing to find the fixpoint.

My guess is that locking down your installed version of RVM to 1.9.2 should keep things deploying:

node['rvm']['version'] = 1.9.2

I'll update this issue with more details...

@ghost ghost assigned fnichol Nov 28, 2011
@bradphelan
Copy link
Contributor

I can verify that the above workaround does the job for the moment. Thanks for the quick investigation.

@fnichol
Copy link
Contributor

fnichol commented Nov 28, 2011

I'll ping @mpapis on #rvm to see what they think about changing the versioning from 1.10.0-pre to 1.10.0.pre but the referenced commit should guard against any future versions with a dash, underscore or pound character.

@fnichol
Copy link
Contributor

fnichol commented Nov 28, 2011

Oh, and this feels like a release-worthy fix :)

@bradphelan
Copy link
Contributor

You might want to attach the other pull request I sent you before a
release. A naming error on a variable :)

B

@fnichol
Copy link
Contributor

fnichol commented Nov 28, 2011

Noted, and pulled!

@fnichol
Copy link
Contributor

fnichol commented Nov 28, 2011

We should be good now, but please reopen if not. Thanks all for your feedback and help

@fnichol fnichol closed this as completed Nov 28, 2011
phlipper pushed a commit to newleaders/chef-rvm that referenced this issue Feb 1, 2012
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants