-
Notifications
You must be signed in to change notification settings - Fork 14
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
gs is not working when installing ruby using chruby #7
Comments
Hey @xxuejie, I can't give you a straight solution because I don't use chruby, but my guess is that it has to do with some code that is executed automatically by chruby when you start a new shell. Can you tell me which code related to chruby is there in your .bashrc? |
Hi @soveran, thanks for the reply! I checked my
For the related I think the problem is just at here? |
Yes, that looks problematic. Not sure if there's a way to use chruby without running that code, though. |
@soveran What do you use, then, for ruby version management? |
I don't have different ruby versions installed, I just use one from homebrew. But I know people are using update-alternatives (linux) with gs/dep without issues, and I'm almost sure people use gs/dep with rbenv/rvm too. |
@xxuejie @mongrelion btw this is a bit hacky, but I wrapped that check in chruby with: if [ -z "$GS_NAME" ]; then and it seems to be working so far. Kinda dirty but, eh. Also if you are invoking chruby to start a default, make sure it's in .bash_profile and not .bashrc |
I'm installing ruby using chruby, and I'm getting the following result(suppose the current directory is foo):
.gs
directory in current path(which exists) is not counted inGEM_PATH
. Is there anything I'm doing the wrong way? Thanks for the help!The text was updated successfully, but these errors were encountered: