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 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" ```