0
Hartl의 RoR 튜토리얼의 시작 단계 (1.2.2 절)에 있고 Ruby를 설치 한 후 RubyGems를 적절히 설치하지 못했습니다. 아래의 순서를 참조하십시오 :튜토리얼에 Rubygems를 설치할 때 오류 메시지가 발생합니다
Hansell-Shooks-MacBook-Pro:~ hansellshook$ rvm install 1.9.2
Installing Ruby from source to: /Users/hansellshook/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...
ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracted to /Users/hansellshook/.rvm/src/ruby-1.9.2-p290 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/hansellshook/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/hansellshook/.rvm/src
Configuring yaml in /Users/hansellshook/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/hansellshook/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/hansellshook/.rvm/usr
ruby-1.9.2-p290 - #configuring
ruby-1.9.2-p290 - #compiling
ruby-1.9.2-p290 - #installing
Removing old Rubygems files...
Installing rubygems-1.8.10 for ruby-1.9.2-p290 ...
Installation of rubygems completed successfully.
ruby-1.9.2-p290 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.2-p290 - #importing default gemsets (/Users/hansellshook/.rvm/gemsets/)
Install of ruby-1.9.2-p290 - #complete
Hansell-Shooks-MacBook-Pro:~ hansellshook$ rvm --create [email protected]
Hansell-Shooks-MacBook-Pro:~ hansellshook$ rvm --create use [email protected]
Using /Users/hansellshook/.rvm/gems/ruby-1.9.2-p290 with gemset rails3tutorial
Hansell-Shooks-MacBook-Pro:~ hansellshook$ rvm --default use [email protected]
Using /Users/hansellshook/.rvm/gems/ruby-1.9.2-p290 with gemset rails3tutorial
Hansell-Shooks-MacBook-Pro:~ hansellshook$ which gem
/Users/hansellshook/.rvm/rubies/ruby-1.9.2-p290/bin/gem
Hansell-Shooks-MacBook-Pro:~ hansellshook$ [sudo] ruby setup.rb
-bash: [sudo]: command not found
시퀀스를 읽은 후 Ruby 1.9.2를 설치할 때 이미 설치가 진행된 것처럼 보입니다. 그러나 나는이 시점에서 더 이상 진행할 수 없다. (레일스를 설치하는 것이다.) 내가 누락 된 부분이 누구인지 아시겠습니까?