我是ruby on rails的新手。我试图跟随rails book开始,我无法从第二章开始。
MyThReYas-MacBook-Pro:rails_projects MyThReYa$ rvm use --create 2.0.0@training
ruby-2.0.0-p353 is not installed.
To install do: 'rvm install ruby-2.0.0-p353'
MyThReYas-MacBook-Pro:rails_projects MyThReYa$
当我尝试使用rvm install时,结果如下:
MyThReYas-MacBook-Pro:rails_projects MyThReYa$ rvm install ruby-2.0.0-p353
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-2.0.0-p353.
Continuing with compilation. Please read 'rvm help mount' to get more information on
binary rubies.
You requested building with '/usr/bin/gcc-4.2' but it is not in your path.
我也尝试过安装以前的版本仍然会遇到同样的错误。
我该如何解决?
MyThReYas-MacBook-Pro:rails_projects MyThReYa$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-
include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix