rvm 上的 ruby 1.9.2 安装错误
我尝试在rvm上安装ruby 1.9.2,但是计算机编译一段时间后,系统在终端上显示错误消息。你知道怎么回事吗?这花了我几个小时:(
ruby-1.9.2-head - #fetching
HEAD is now at 91799a2 merges r30786, r30787 and r30797 from trunk into ruby_1_9_2.
From https://github.com/ruby/ruby
* branch ruby_1_9_2 -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
Running autoconf
ruby-1.9.2-head - #configuring
ruby-1.9.2-head - #compiling
ERROR: Error running 'make ', please read /Users/nofear38/.rvm/log/ruby-1.9.2-head/make.log
ERROR: There has been an error while running make. Halting the installation.
I tried to install ruby 1.9.2 on rvm, but after the computer compiles for a while, the system says error message on Terminal. Do you know what the matter is? It's taking me hours :(
ruby-1.9.2-head - #fetching
HEAD is now at 91799a2 merges r30786, r30787 and r30797 from trunk into ruby_1_9_2.
From https://github.com/ruby/ruby
* branch ruby_1_9_2 -> FETCH_HEAD
Already up-to-date.
Copying from repo to src path...
Running autoconf
ruby-1.9.2-head - #configuring
ruby-1.9.2-head - #compiling
ERROR: Error running 'make ', please read /Users/nofear38/.rvm/log/ruby-1.9.2-head/make.log
ERROR: There has been an error while running make. Halting the installation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
运行
rvm Notes
并确保安装了操作系统依赖项。Run
rvm notes
and ensure that OS dependencies are installed.你安装了 XCode 的构建工具吗?如果您想要
制作
东西,您将需要它们。Do you have the build tools from XCode installed? You will need them if you want to
make
things.错误输出明确指出要读取
/Users/nofear38/.rvm/log/ruby-1.9.2-head/make.log
。该日志文件告诉您有关错误的什么信息?这可能会准确地告诉您问题是什么。如果没有,您安装RVM时使用了什么命令?
您是否遵循安装方法或其他说明?我们经常发现人们要么遵循了错误的指示,要么没有完全遵循指示,要么使用系统范围的安装而不是单用户的沙箱。
您显示的命令输出不是我在当前 1.9.2 安装中通过 RVM 安装 Ruby 时看到的内容。如果您使用:
我建议您改为使用:
它将引入 1.9.2-p180,这是当前的稳定分支,而不是最新的前沿版本。
The error output is specifically saying to read
/Users/nofear38/.rvm/log/ruby-1.9.2-head/make.log
. What does that log file tell you about the error? That might tell you exactly what the problem is.If not, what command did you use when you installed RVM?
Are you following the Installation Methods or some other instructions? All too often we find people have either followed the wrong directions, didn't follow the directions completely, or are using the system-wide installation instead of the single-user's sandbox.
The command output you show is not what I see when installing Ruby via RVM for the current 1.9.2 install. If you used:
I recommend instead you use:
which will pull in 1.9.2-p180, which is the current stable branch, rather than the latest bleeding-edge version.
如果您还没有解决这个问题,我正在运行 Ubuntu 11.0,并且我使用了 sudo apt-get install ruby-rvm 并且 rvm 安装完美!
In case you haven't solved this problem, I'm running Ubuntu 11.0 and I used
sudo apt-get install ruby-rvm
and rvm installed perfectly!