将/usr/bin/gcc-4.2添加到路径 - 安装ruby

时间:2013-03-04 14:43:02

标签: ruby-on-rails ruby bash rvm

我正在尝试通过rvm安装ruby。

rvm install ruby-1.9.3-p286

但是我收到以下错误:

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p286.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
You requested building with '/usr/bin/gcc-4.2' but it is not in your path.

参考错误的最后一行,我如何获得' usr / bin / gcc-4.2'在我的路上?

我尝试将以下PATH="/usr/bin:$PATH"添加到我的.bash_profile中,但没有运气。

1 个答案:

答案 0 :(得分:3)

运行以下命令:

rvm requirements

然后按照指示按照步骤进行操作。