-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
cannot create /usr/local/rvm/gemsets/global.gems: Directory nonexistent #38
Comments
Right off the top of my head that looks correct. Let me do a quick setup with vagrant to reproduce, there could be some deep down system-wide dependency that I didn't squash. What OS are you working with? |
ubuntu 10.04 |
I'm having this same problem on Ubuntu 11.04. In the defaults, default['rvm']['root_path'] is set to "/usr/local/rvm". When the update_global_gems_file method is called in the global_gem provider it does not check to see if this directory exists before trying to write into it. Should we need to manually create that directory ourselves? What is the correct thing to do in this situation? Here's the chef-client output with stack trace for your convenience:
|
One more quick note: manually creating that directory with |
I created a patch for this issue here: #41 |
Ugh, this is totally a documentation error! @petitbon can you try this tweak: include_recipe "rvm::user"
node['rvm']['user_installs'] = [
{ 'user' => 'hugo',
'default_ruby' => 'ruby-1.9.2-p290',
'rubies' => ['1.9.2'],
'rvmrc' => {
'rvm_project_rvmrc' => 1,
'rvm_gemset_create_on_use_flag' => 1,
'rvm_pretty_print_flag' => 1
},
'global_gems' => []
}
]
node['rvm']['user_global_gems'] = [
{ 'name' => 'bundler',
'version' => '1.0.17'
},
{ 'name' => 'rake',
'version' => '0.9.2'
}
] I had intended @sadowski, it looks like when following the (incorrect) README formated metadata gets used the user isn't found in Apologies to all! |
I agree that a user install shouldn't need to create any system directories, so feel free to close off my pull request. However, I don't think it should try to do a system-wide install if a user install is requested. It's probably better to just fail gracefully at that point. Maybe check the required parameters of the Thanks! |
@sadowski I totally agree about the unnecessary system-wide install. The default behavior of all the LWRPs is to assume system-wide when a |
I think we've beat this one into submissions, thanks to all for your feedback. |
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. |
I just want to install rvm for a user
but I keep getting: cannot create /usr/local/rvm/gemsets/global.gems: Directory nonexistent
is this the right way to install rvm under the user 'hugo' ? thanks
The text was updated successfully, but these errors were encountered: