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 trial

Ruby Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Mac

Kyle Daugherty
Kyle Daugherty
16,441 Points

Switching from rvm to rbenv

I followed Jason Seifer's video on installing a Ruby development environment on a Mac. Previously, I had been using rvm so I had to uninstall it first. Now, each time I start up my terminal, I get the following message:

-bash: __rvm_add_to_path: command not found

I believe I have some left over rvm information in my bash profile, but I'm not sure how to go about fixing it. Any suggestions? Thanks in advance for your help!

2 Answers

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Kyle Daugherty try checking for /etc/rvmrc or ~/.rvmrc and remove any rvm references there as well.

Kyle Daugherty
Kyle Daugherty
16,441 Points

Thanks Jason Seifer! This led me down the right path. In case anyone else has this problem, I had to edit my /etc/profile by removing the line with source /etc/profile.d/rvm.sh

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Kyle Daugherty try checking your .bash_profile or .bashrc file in your home directory and see if there are any rvm references in there. If there are, try taking them out or commenting them out.

Kyle Daugherty
Kyle Daugherty
16,441 Points

Thanks for the quick response Jason Seifer. I looked at each file and didn't see any rvm references. My .bashrc file was empty and my .bash_profile has the following:

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

Added by the Heroku Toolbelt

export PATH="/usr/local/heroku/bin:$PATH" ```