Instalowanie szyn na Mavericks
Nie wiem, co się stało, ale kiedy uaktualniłem do Mavericks, mówi, że Railsy nie instalują się. Wykonałem następujące polecenie:
rails --version
I powiedział: „Railsy nie są obecnie zainstalowane i uruchamiają sudo gem install rails”.
Używam sudo gem install rails i otrzymuję:
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/json-1.8.1 for inspection.
AKTUALIZACJA:
Uruchomiłem polecenie gcc --version i otrzymałem następujące polecenie:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.76) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix