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 a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Mac

Rails issue

juans-MacBook-Pro:~ juan$ sudo gem install rails Password:

Building native extensions. This could take a while... Successfully installed nokogiri-1.6.7.1 Fetching: loofah-2.0.3.gem (100%) Successfully installed loofah-2.0.3 Fetching: rails-html-sanitizer-1.0.2.gem (100%) Successfully installed rails-html-sanitizer-1.0.2 Fetching: rails-deprecated_sanitizer-1.0.3.gem (100%) Successfully installed rails-deprecated_sanitizer-1.0.3 Fetching: rails-dom-testing-1.0.7.gem (100%) Successfully installed rails-dom-testing-1.0.7 Fetching: actionview-4.2.5.gem (100%) Successfully installed actionview-4.2.5 Fetching: actionpack-4.2.5.gem (100%) Successfully installed actionpack-4.2.5 Fetching: sprockets-rails-3.0.0.gem (100%) Successfully installed sprockets-rails-3.0.0 Fetching: railties-4.2.5.gem (100%) railties's executable "rails" conflicts with /usr/bin/rails Overwrite the executable? [yN] ERROR: Error installing rails: "rails" from railties conflicts with /usr/bin/rails juans-MacBook-Pro:~ juan$

(I do not know What I am doing wrong)

Jesus Mendoza
Jesus Mendoza
23,275 Points

Idk if this is related to your problem but have you installed Ruby Devkit?

1 Answer

Hi Juan,

In your terminal, what do you get if you type rails -v. That tells us what version you have installed already which seems to be causing a conflict.

Steve.