Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Ruby Foundations Ruby Basics Installing Ruby

John Stoveld
John Stoveld
4,203 Points

So I try to edit my .bash_profile and my profile looks nothing like his... Not sure what I should see...

The code I see is :

export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" eval "$(rbenv init -)"

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session as a function

anyone else run into this?

1 Answer

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

What do you expect to see? The lines you presented use rbenv and rvm at the same time. Using these two tools at the same time (having them both installed) is not a very good idea.

John Stoveld
John Stoveld
4,203 Points

I was following the install of ruby walkthrough by jason.

I clearly just followed the walkthrough. Unfortunately the ruby on rails tracks teach you to install an rbenv the course before. THen tell you to install rvm.

I guess I need to look into uninstalling rbenv.

John Stoveld
John Stoveld
4,203 Points

Went through and removed rbenv and now code is

export PATH="$HOME/.rbenv/bin:$PATH"

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session as a function

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

I'm not sure what this whole thing is supposed to do. This tutorial must be very old since it uses Ruby 1.9.3. Let's start from the beginning: what operating system are you using?

John Stoveld
John Stoveld
4,203 Points

OSX Yosemite.

I ended up having to uninstall rbenv.

I do know it is an outdated screencast.

Updated rvm and got this message back from terminal today.

Upgrade Notes:

WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/Users/JS/.bash_profile':

source ~/.profile

No new notes to display.

Maciej Czuchnowski
Maciej Czuchnowski
36,440 Points

OK, I still don't know what all this was supposed to do. I use bash_aliases in Linux to have a custom console prompt (it takes the info from RVM and displays the version of Ruby I'm currently using + name of current git branch and colors it if there are uncommitted changes). Not sure if this here was similar in its function, since I've never used Mac. But if everything else is working (i.e. you have installed a working version of RVM and Ruby), I assume you can ignore this whole part.

John Stoveld
John Stoveld
4,203 Points

Youve got me as well!

Here is the response I got back from RVM_IO on twitter :

“@rvm_io: @JohnnyTrisport check what is in ~/.profile, if you do not add the sourcing line then you miss out this content when using login shell”