This is what I have, did anyone has an idea to make it configuring correctly ?
这就是我所拥有的,有人想过让它正确配置吗?
MacBook-Air-de-Remy-Thellier:~ remythellier$ rvm install 1.9.2 /Users/remythellier/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)... ruby-1.9.2-p0 - #fetching ruby-1.9.2-p0 - #extracted to /Users/remythellier/.rvm/src/ruby-1.9.2-p0 (already extracted) ruby-1.9.2-p0 - #configuring Error running './configure --prefix=/Users/remythellier/.rvm/rubies/ruby-1.9.2-p0 --enable-shared ', please read /Users/remythellier/.rvm/log/ruby-1.9.2-p0/configure.log There has been an error while running configure. Halting the installation.
5 个解决方案
#1
20
Install XCode from your OSX cd. That will give you gcc
and everything you need to compile the rubies you want to install.
从您的OSX cd安装XCode。这将为您提供gcc和所有您需要的编译您想要安装的红宝石的工具。
edit
编辑
Mountain Lion no longer ships gcc
with XCode, you have to explicitly install it from Preferences -> Downloads -> "Install Command Line Tools" as @boulder_ruby mentioned
Mountain Lion不再提供带有XCode的gcc,您必须从Preferences ->下载->“安装命令行工具”(如@boulder_ruby所提到)显式地安装它
#2
5
If you have just recently installed Xcode, like me, remember that you have to open it first, which starts the installation wizard.
如果您最近像我一样安装了Xcode,请记住您必须先打开它,这将启动安装向导。
** Also, make sure you specify the installation of command line tools, which, at least in my case, were not included by default. (key here is the C compiler) - inside of Xcode, go to preferences (cmd+,), Downloads, then install command line tools
**同样,请确保您指定了命令行工具的安装,至少在我的情况下,默认情况下不包括这些工具。(这里的关键是C编译器)-在Xcode中,进入首选项(cmd+),下载,然后安装命令行工具
#3
2
In addition to boulder_ruby's answer, I also had to update to the latest stable version of RVM in order to get the Ruby to install.
除了boulder_ruby的答案之外,我还必须更新到最新稳定的RVM版本,以便安装Ruby。
#4
2
This is probably a little late, but if you're having issues like I did, this article is a lifesaver. You don't just need to install XCode, but also the 'command line tools' which are located in Xcode's preferences:
这可能有点晚了,但是如果您遇到像我这样的问题,本文将是一篇挽救生命的文章。您不仅需要安装XCode,还需要安装位于XCode首选项中的“命令行工具”:
http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
#5
1
Steps I followed for upgrading ruby from 1.8.7 to 1.9.3 (mac osx 10.7)
我按照以下步骤将ruby从1.8.7升级到1.9.3 (mac osx 10.7)
- Install RVM https://rvm.io/rvm/install/
- 安装RVM https://rvm.io/rvm/install/
- Then download install xcode from appstore
- 然后从appstore下载install xcode
- Install command line tools from xcode - Go to
xcode->preferences->downloads->components->commandline tools
now run - 从xcode中安装命令行工具-转到xcode->首选项->下载->组件->命令行工具现在运行
- '
sudo rvm install 1.9.3
- “sudo rvm 1.9.3安装
-
rvm use 1.9.3
- 1.9.3区使用
#1
20
Install XCode from your OSX cd. That will give you gcc
and everything you need to compile the rubies you want to install.
从您的OSX cd安装XCode。这将为您提供gcc和所有您需要的编译您想要安装的红宝石的工具。
edit
编辑
Mountain Lion no longer ships gcc
with XCode, you have to explicitly install it from Preferences -> Downloads -> "Install Command Line Tools" as @boulder_ruby mentioned
Mountain Lion不再提供带有XCode的gcc,您必须从Preferences ->下载->“安装命令行工具”(如@boulder_ruby所提到)显式地安装它
#2
5
If you have just recently installed Xcode, like me, remember that you have to open it first, which starts the installation wizard.
如果您最近像我一样安装了Xcode,请记住您必须先打开它,这将启动安装向导。
** Also, make sure you specify the installation of command line tools, which, at least in my case, were not included by default. (key here is the C compiler) - inside of Xcode, go to preferences (cmd+,), Downloads, then install command line tools
**同样,请确保您指定了命令行工具的安装,至少在我的情况下,默认情况下不包括这些工具。(这里的关键是C编译器)-在Xcode中,进入首选项(cmd+),下载,然后安装命令行工具
#3
2
In addition to boulder_ruby's answer, I also had to update to the latest stable version of RVM in order to get the Ruby to install.
除了boulder_ruby的答案之外,我还必须更新到最新稳定的RVM版本,以便安装Ruby。
#4
2
This is probably a little late, but if you're having issues like I did, this article is a lifesaver. You don't just need to install XCode, but also the 'command line tools' which are located in Xcode's preferences:
这可能有点晚了,但是如果您遇到像我这样的问题,本文将是一篇挽救生命的文章。您不仅需要安装XCode,还需要安装位于XCode首选项中的“命令行工具”:
http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
#5
1
Steps I followed for upgrading ruby from 1.8.7 to 1.9.3 (mac osx 10.7)
我按照以下步骤将ruby从1.8.7升级到1.9.3 (mac osx 10.7)
- Install RVM https://rvm.io/rvm/install/
- 安装RVM https://rvm.io/rvm/install/
- Then download install xcode from appstore
- 然后从appstore下载install xcode
- Install command line tools from xcode - Go to
xcode->preferences->downloads->components->commandline tools
now run - 从xcode中安装命令行工具-转到xcode->首选项->下载->组件->命令行工具现在运行
- '
sudo rvm install 1.9.3
- “sudo rvm 1.9.3安装
-
rvm use 1.9.3
- 1.9.3区使用