xcode, 명령 줄 도구, home brew, rvm 및 ruby를 다운로드했지만 sudo gem install rails
명령을 사용할 때 오류 메시지가 나타납니다. 어떤 도움을해야할지 잘 모르겠다. 새로운 Mac에 레일을 설치하고 싶다.보석 설치 레일에 실패했습니다. 오류 : 보석 기본 확장자를 빌드하지 못했습니다.
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /Users/cheatermoves/.rvm/gems/ruby-2.0.0-p247/gems/atomic-1.1.14/test/test_atomic.rb
marshalls-MacBook-Air:~ cheatermoves$ sudo gem install rails
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/Users/cheatermoves/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/cheatermoves/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
--with-atomic_reference-dir
--without-atomic_reference-dir
--with-atomic_reference-include
--without-atomic_reference-include=${atomic_reference-dir}/include
--with-atomic_reference-lib
--without-atomic_reference-lib=${atomic_reference-dir}/
/Users/cheatermoves/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/cheatermoves/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:519:in `try_link0'
from /Users/cheatermoves/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/mkmf.rb:817:in `try_run'
from extconf.rb:26:in `<main>'
'gcc --version'의 결과는 무엇입니까? –
구성 : --prefix =/응용 프로그램/Xcode.app/내용/개발자/usr --with-gxx-include-dir =/usr/include/C++/4.2.1 Apple LLVM 버전 5.0 (clang-500.2. 7635) (LLVM 3.3svn 기반) 대상 : x86_64-apple-darwin12.5.0 스레드 모델 : posix –
이 동일한 오류가 발생합니다 ... – christian