Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am just started to update my Gitlab on Gentoo server (4.2 > 5.0). For new version Gitlab need to use Ruby with user 'git'.

# check ruby version for git user ( 1.9 required!! )
# gitlab shell requires system ruby 1.9


I have Ruby installed, if I execute

ruby -v

with root user, it works fine

ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]

but when I am login as git

bash: ruby: Command not found

How can I make ruby available for git user?

share|improve this question

migrated from May 24 '13 at 9:55

This question came from our site for professional and enthusiast programmers.

Check how the $PATH variable is set for the user git, here there is the doc about environment variables on Gentoo. –  toro2k May 24 '13 at 6:25
@toro2k I was try to change $PATH variable export PATH=$PATH:/root/.gem/ruby/1.9.1/bin But it is did not workout. May be because of path /root? –  Flaps May 24 '13 at 6:57
@toro2k, it's work! Thanks a lot! –  Flaps May 24 '13 at 7:32
@toro2k why don't you post that as an answer? –  terdon May 24 '13 at 11:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.