Comments (7)
Hi @khelben. Yes.
It's normal trouble: rbenv/rbenv#38 && http://stackoverflow.com/a/18555295
from rbenv.
@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 gem
is run.
from rbenv.
@vchervanev did you find the solution to this?
from rbenv.
@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.
from rbenv.
I moved rbenv's init code to ~/.bashrc and it helped.
Like as per user installation? :)
from rbenv.
@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"
from rbenv.
When doing a system install, the module really ought to be doing the following:
-
ensuring the existence of rbenv group using
-
setting /usr/local/rbenv to be owned by the rbenv_group user
-
ensuring directories and files have the proper group ownership, e.g.:
sudo find /usr/local/rbenv -type d -exec chmod g+ws {} + sudo find /usr/local/rbenv -type f -exec chmod g+w {} +
-
ensure that the user has the rbenv_group appended to that user's groups list
If you do those things, either within your Ansible scripts or by hand, it works as expected.
from rbenv.
Related Issues (20)
- Multiuser install triggers a "sudo: password is required" HOT 1
- No package matching 'libyaml-devel' found available, installed or updated HOT 1
- always reports "changed"
- Fails on Debian Stretch due to permissions HOT 2
- ruby cleanup fails HOT 1
- the curl utility itself is a rbenv build dependency, and isn't always there already HOT 1
- No idempotency on "install ruby versions for system" HOT 1
- Bundler 2.0 compatibility HOT 3
- Build fails on Ubuntu 18 Bionic Beaver HOT 1
- Why some important tasks are marked to ignore_errors ? HOT 2
- error Install with env user at task: initialization to profile system-wide
- Role works on Ubuntu only
- zzet.rbenv missing on ansible galaxy HOT 1
- Use a mirror to download/install ruby? HOT 1
- The primary branch on rbenv/rbenv-installer repo has been changed to 'main' from 'master'
- fail to run through ansible 2.11, python version 3.8.5
- The error was: 'dict object' has no attribute 'drop_ruby' HOT 2
- Plugins step fails because rbenv-installer removed the master branch HOT 2
- "No package matching 'libjemalloc1' is available" HOT 1
- Plugin installation is unexpectedly skipped
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rbenv.