-
Notifications
You must be signed in to change notification settings - Fork 112
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
install gems when rbenv is installed system wide #16
Comments
Hi @khelben. Yes. It's normal trouble: rbenv/rbenv#38 && http://stackoverflow.com/a/18555295 |
@zzet, there is an interesting problem (ubuntu 14.04.1) - when Ansible(1.8.2) runs a SUDO command scripts at profile.d are ignored. As a result env is not prepared and system version of |
@vchervanev did you find the solution to this? |
@blackjid I'd say Yes. In my case the right way is to use a 3rd party package (e.g. bright-box) since it isn't a dev machine and there is no need to switch between versions. However, if you need RBENV installed - there is a workaround. My initial conclusion was wrong - SUDO is not the reason, but a non-login shell session is. I moved rbenv's init code to ~/.bashrc and it helped. |
Like as per user installation? :) |
@zzet exactly! 8-) Updated: I had to source env vars at the beginning of .bashrc, I'm not sure if it equals to "per user installation" |
When doing a system install, the module really ought to be doing the following:
If you do those things, either within your Ansible scripts or by hand, it works as expected. |
When I deploy rbenv to be installed system-wide, I cannot install any gems on the installed host.
Do I need to install the gems with
sudo gem install ...
?The text was updated successfully, but these errors were encountered: