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,269 Points

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

1 Answer

Steve Hunter
Steve Hunter
Treehouse Moderator 57,652 Points

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.