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 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- 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,288 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.