Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJohn Stoveld
4,203 PointsSo 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
36,441 PointsWhat 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
4,203 PointsJohn Stoveld
4,203 PointsI 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
4,203 PointsJohn Stoveld
4,203 PointsWent 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
36,441 PointsMaciej Czuchnowski
36,441 PointsI'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
4,203 PointsJohn Stoveld
4,203 PointsOSX 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
36,441 PointsMaciej Czuchnowski
36,441 PointsOK, 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
4,203 PointsJohn Stoveld
4,203 PointsYouve 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β