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

Nelly Nelly
Nelly Nelly
7,134 Points

Warning message when upgrading rvm

Hi there,

I have this when trying to upgrade rvm

/Users/nelly/.zshrc:56:export PATH="/Users/nelly/.rvm/gems/ruby-2.2.1/bin:/Users/nelly/.rvm/gems/ruby-2.2.1@global/bin:/Users/nelly/.rvm/rubies/ruby-2.2.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/nelly/.rvm/bin"

  * WARNING: Above files contains `PATH=` with no `$PATH` inside, this can break RVM,
    for details check https://github.com/rvm/rvm/issues/1351#issuecomment-10939525
    to avoid this warning append #PATH.

  * No new notes to display

I am not sure what to do... I am affraid to break all....

Ethan Rivas
Ethan Rivas
9,979 Points

Remove/Comment the line 56 and try again.

Nelly Nelly
Nelly Nelly
7,134 Points

hi, I didn't remove but added $PATH after PATH="Users/....." like this

export PATH=$PATH"/Users/nelly/.rvm/gems/ruby-2.2.1/bin:/Users/nelly/.rvm/gems/ruby-2.2.1@global/bin:/Users/nelly/.rvm/rubies/ruby-2.2.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/nelly/.rvm/bin"

1 Answer

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Nelly Nelly , that's good, but you need a colon (:) separating your $PATH variable from the rest of the string. (Notice how all the other directories have : separating them.) If your path consisted of /usr/bin previously, you now have an entry in your path pointing to /usr/bin/Users/nelly/.rvm/gems/ruby-2.2.1/bin (which probably doesn't exist).

Try this:

export PATH=${PATH}:/Users/nelly/.rvm/gems/ruby-2.2.1/bin:/Users/nelly/.rvm/gems/ruby-2.2.1@global/bin:/Users/nelly/.rvm/rubies/ruby-2.2.1/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/nelly/.rvm/bin"