Giter VIP home page Giter VIP logo

Comments (7)

zzet avatar zzet commented on August 18, 2024

Hi @khelben. Yes.

It's normal trouble: rbenv/rbenv#38 && http://stackoverflow.com/a/18555295

from rbenv.

vchervanev avatar vchervanev commented on August 18, 2024

@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.

blackjid avatar blackjid commented on August 18, 2024

@vchervanev did you find the solution to this?

from rbenv.

vchervanev avatar vchervanev commented on August 18, 2024

@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.

zzet avatar zzet commented on August 18, 2024

@vchervanev

I moved rbenv's init code to ~/.bashrc and it helped.

Like as per user installation? :)

from rbenv.

vchervanev avatar vchervanev commented on August 18, 2024

@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.

todd-a-jacobs avatar todd-a-jacobs commented on August 18, 2024

When doing a system install, the module really ought to be doing the following:

  1. ensuring the existence of rbenv group using

  2. setting /usr/local/rbenv to be owned by the rbenv_group user

  3. 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 {} +
    
  4. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.