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 Ruby Foundations Ruby Basics Installing Ruby

Bash profile edits for Ruby and Ruby development environment installs (conflicting information, maybe?)

Hello!

In stage one of Ruby Basics, there's a bunch of install info that's older and, in a way, a different approach to installing a Ruby and Rails environment. It's a bit strange, too, that it comes after a sort of one-stage course that was actually called Installing a Ruby Development Environment. I'm guessing that this is due to the fact that, perhaps, the Installing course is newer. There's been a bit of discussion about this in the forumalready.

My question, though, is slightly different. The stage one video shows some bash profile editing that seems like it might mess with the rbenv stuff that the Installing course covered. Here's the way that stage one says to edit your bash profile:

bash1pic

And here's how my bash profile already looks:

bash2

Should I add the .rvm info from that first screenshot to my profile? Can both things be there, and would that even make sense?

I know that this likely seems like a newb-style question, but I'm trying my best to follow along while also recognizing that maybe both methods aren't actually needed. :-)

Thanks in advance!

2 Answers

According to the rbenv documentation:

Compatibility note: rbenv is incompatible with RVM. Please make sure to fully uninstall RVM and remove any references to it from your shell initialization files before installing rbenv.

https://github.com/sstephenson/rbenv

I would just stick to the most recent one. Anecdotally, I did not use the information under the ruby foundations course as it was out of date. It doesn't really come up in the later videos either so in either case, as long as you have ruby somewhere you will be fine working through. Sorry if that is not an in depth enough answer.

Actually, that's super helpful--thank you!

It looks like it is already on there to me. The $HOME in the second one is the same as Users/levelup/, so the file paths are equivalent in both. The home directory is just represented differently in both screenshots.

Still, though, one of them contains rbenv and the other contains rvm. Should I include lines for both, pick one or the other, or?

Will it break if I include both in the profile?

I guess I'm trying to understand a bit more here. :)