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 Rails on Mac

Ignacio San Martin
Ignacio San Martin
421 Points

I get a WARNING when installing RVM. Something about '~/.profile' file, you might want to load in .bash_profile

When trying to install RVM I get the following message:

  • WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/Users/ignacio/.bash_profile':

    source ~/.profile

The problem is I dont see any file named ".bash_profile" in that location.

Ethan Rivas
Ethan Rivas
9,979 Points

Usually the files with a dot are "hidden" so, you can't see them, which O.S are you using ?

4 Answers

Ignacio San Martin
Ignacio San Martin
421 Points

I'm using OS X El Capital v 10.11.5

Ethan Rivas
Ethan Rivas
9,979 Points

I found this on Internet, I hope this works for you:

  • Replace content of /Users/user/.bash_profile with source ~/.profile
  1. Travel to folder: cd ~/
  2. List only hidden files: ls -ld .?*
  3. Edit file: pico .bash_profile
  4. Replace content
  5. Save
Ignacio San Martin
Ignacio San Martin
421 Points

Great after unhiding files I was able to install RVM

Ethan Rivas
Ethan Rivas
9,979 Points

Nice! Happy coding :D!

Mars Epaecap
Mars Epaecap
5,110 Points

Here's what I did:

Open Terminal (click Go > Utilities and double-click the Terminal app)

Now copy and paste both lines listed below into Terminal one at a time, and press Return after each line:

defaults write com.apple.finder AppleShowAllFiles YES

killall Finder

then open finder and navigate to '/Users/your_user_name/.bash_profile you can just open your downloads folder and do cmd + up-arrow to get to your_user_name folder then just look for the .bash_profile file and open it and paste source ~/.profile in there.

then to hide the .files again do the following in the terminal:

bash defaults write com.apple.finder AppleShowAllFiles NO

killall Finder