Install RAILS on MAC OS 10.9 Mavericks (beta)

I am running OS X Mavericks 10.9 beta and now is the time to return to learning Ruby on Rails. We are pleased to know that 10.9 includes Ruby 2.0

But I am unable to install Rails.

with the command - sudo gem install rails

leads to this.

Create your own extensions. This may take some time ... ERROR: Error installing rails: ERROR: Failed to create custom gem extension.

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb mkmf.rb cannot find header files for ruby ​​in / System / Library / Frameworks / Ruby.framework / Versions / 2.0 /usr/lib/ruby/include/ruby.h

Gem files will remain in / Library / Ruby / Gems / 2.0.0 / gems / atomic-1.1.10 for verification. Results recorded in / Library / Ruby / Gems / 2.0.0 / gems / atomic-1.1.10 / ext / gem_make.out

Any tips?

thanks

Shannon

+6
source share
4 answers

For me, this problem was fixed by running the following command:

xcode-select --install 
+2
source

Try post

Using your Ruby system is not recommended; you can use it in a sandbox such as RVM or rbenv.

0
source

Xcode 5 required.

and..

 $ xcode-select -p /Applications/Xcode5-DP3.app/Contents/Developer 

it works.

or

see Install Ruby 2.0 on Mac OS X without RVM

0
source

Make sure that you are using the Xcode 5.0.1 GM seed, not the Xcode downloaded from the App Store. A similar problem was fixed for me.

0
source

Source: https://habr.com/ru/post/948388/


All Articles