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.
Bash profile edits for Ruby and Ruby development environment installs (conflicting information, maybe?)
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:
And here's how my bash profile already looks:
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!
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.
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.
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.