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

Can access rails in second terminal (and subl . command not working).


I just set up my rails environment on my mac (everything updated to latest version). I am experiencing two problems: 1. I can't access rails on a second terminal. I opened another terminal to run the rails server on it and when I enter "rails --version" I get this error: "Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails. You can then rerun your "rails" command."

When I enter "rails --version" on the original terminal I opened it states the version. I cannot do any other rails actions on the second terminal. Do you know why this is happening and how to fix it? I also cannot open sublime via terminal at all. I get this error:"-bash: subl: command not found" Any help with either or both of these issues would be great. Thanks all.

Brandon McClelland
Brandon McClelland
4,645 Points

Have you restarted the terminals since installing everything?

1 Answer

Jay McGavren
Jay McGavren
Treehouse Teacher

To help troubleshoot the Rails issue I first need to know: did you follow the directions in Installing a Rails 5 Development Environment on Mac to set up your environment? If so, can I assume that means you are using RVM?

Regarding the subl issue, there's a solution here.