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