今天我在Mac上工作(我是Ubuntu用户),在安装和配置Ruby on Rails时遇到一些问题。
首先我安装自制,然后 rvm 。
然后我尝试安装 rvm requirements 并收到此错误:
user:~ analistas$ rvm requirements
Checking requirements for osx.
Error: No available formula for gcc46
Installing requirements for osx.
Updating system........
Error running 'requirements_osx_brew_update_system ',
showing last 15 lines of /Users/analistas/.rvm/log/1395783259/update_system.log
+ printf %b '
Xcode version older than 4.6.2 installed, download and install newer version from:
http://connect.apple.com
After installation open Xcode, go to Downloads and install Command Line Tools.
\n'
Xcode version older than 4.6.2 installed, download and install newer version from:
http://connect.apple.com
After installation open Xcode, go to Downloads and install Command Line Tools.
+ return 1
Requirements installation failed with status: 1.
user:~ analistas$
可能使用较旧的Xcode运行rvm requirements
答案 0 :(得分:0)
你可以brew search rvm
,如果你看到和旧版本(我不确定哪一个支持旧的gcc)。然后,您可以执行brew install {whatever search returns}