저는 Hartl 's RoR Tutorial을 따르는 동안 OS X와 RoR에 익숙하지 않고 몇 가지 오류가 발생했습니다.Mac OS X 10.7.3의 새로운 Ruby on Rails 설치
Git과 RVM을 설치했지만 Ruby를 설치하는 동안 오류가 발생하여 Ruby Gems와 Rails 중 하나를 설치할 수 없습니다.
로그 파일을 읽었지만 문제가 무엇인지 파악할 수 없습니다. 내 컴퓨터가 작동하지 않을 수 있으며 --version에 문제가있는 것 같습니다. 일부 파일은 존재하지 않습니다. 당신의 도움에 대한
많은 감사 :) 당신은 어떤 컴파일러가 설치되어 있지 않은
User-MacBook-Air:~ haseebjaved$ rvm install 1.9.2
Fetching yaml-0.1.4.tar.gz to /Users/haseebjaved/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/haseebjaved/.rvm/src
Configuring yaml in /Users/haseebjaved/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/haseebjaved/.rvm/usr" ', please read /Users/haseebjaved/.rvm/log/ruby-1.9.2-p318/yaml/configure.log
Compiling yaml in /Users/haseebjaved/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/haseebjaved/.rvm/log/ruby-1.9.2-p318/yaml/make.log
Database file /Users/haseebjaved/.rvm/config/packages does not exist.
/Users/haseebjaved/.rvm/scripts/functions/build: line 28: --version: command not found
Installing Ruby from source to: /Users/haseebjaved/.rvm/rubies/ruby-1.9.2-p318, this may take a while depending on your cpu(s)...
ruby-1.9.2-p318 - #fetching
ruby-1.9.2-p318 - #extracted to /Users/haseebjaved/.rvm/src/ruby-1.9.2-p318 (already extracted)
ruby-1.9.2-p318 - #configuring
Error running ' ./configure --prefix=/Users/haseebjaved/.rvm/rubies/ruby-1.9.2-p318 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/haseebjaved/.rvm/usr ', please read /Users/haseebjaved/.rvm/log/ruby-1.9.2-p318/configure.log
There has been an error while running configure. Halting the installation.
/Users/haseebjaved/.rvm/scripts/functions/build: line 28: --version: command not found
어떤 XCode 버전을 사용하고 있습니까? Xcode가 4.1 이상인 경우에는 다운 그레이드를 권장합니다. 그렇지 않으면 루비 1.9.3 만 컴파일 할 수있게되고 많은 보석이 당신에게 trubbles를 줄 것입니다. XCode 4.1을 설치하고'CC =/usr/bin/gcc-4.2'로 보내면 rvm으로 루비를 컴파일 할 수 있습니다. – nolith
안녕 Nolith 귀하의 회신에 감사드립니다. Xcode 4.3.1을 설치했습니다. 어떻게 4.1로 다운 그레이드 할 수 있습니까? 기본적으로 'rvm install 1.8.7'을 실행하고 Hartl의 튜토리얼에서 지시 한대로 'rvm install 1.9.2'를 실행하려고하는데 설치 명령을 모두 실행하면 다른 오류가 발생합니다 ... 'rvm install 1.8. 7 ','오류 실행 중 '오류가 발생합니다. -F 25 -p1 -N -f < "/ Users/haseebjaved/.rvm/patches/ruby / 1.8.7/stdout-rouge-fix.patch" /Users/haseebjaved/.rvm/log/ruby-1.8.7-p358/patch.apply.stdout-rouge-fix.log ' – hjaved
및'rvm install 1.8.7 '에 대한 두 번째 오류가 발생합니다. 오류' ./configure --prefix =/Users/haseebjaved/.rvm/rubies/ruby-1.8.7-p358 - 사용 가능 공유 --disable-install-doc '/Users/haseebjaved/.rvm/log/를 읽으십시오. ruby-1.8.7-p358/configure.log configure 실행 중 오류가 발생했습니다. 설치를 중지합니다. – hjaved