rvm 上的 ruby​​ 1.9.2 安装错误

发布于 2024-11-05 09:47:22 字数 596 浏览 1 评论 0原文

我尝试在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

抠脚大汉 2024-11-12 09:47:22

运行 rvm Notes 并确保安装了操作系统依赖项。

Run rvm notes and ensure that OS dependencies are installed.

两人的回忆 2024-11-12 09:47:22

你安装了 XCode 的构建工具吗?如果您想要制作东西,您将需要它们。

Do you have the build tools from XCode installed? You will need them if you want to make things.

错々过的事 2024-11-12 09:47:22

错误输出明确指出要读取 /Users/nofear38/.rvm/log/ruby-1.9.2-head/make.log。该日志文件告诉您有关错误的什么信息?这可能会准确地告诉您问题是什么。

如果没有,您安装RVM时使用了什么命令?

您是否遵循安装方法或其他说明?我们经常发现人们要么遵循了错误的指示,要么没有完全遵循指示,要么使用系统范围的安装而不是单用户的沙箱。

您显示的命令输出不是我在当前 1.9.2 安装中通过 RVM 安装 Ruby 时看到的内容。如果您使用:

rvm install 1.9.2-head

我建议您改为使用:

rvm install 1.9.2

它将引入 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:

rvm install 1.9.2-head

I recommend instead you use:

rvm install 1.9.2

which will pull in 1.9.2-p180, which is the current stable branch, rather than the latest bleeding-edge version.

淡淡绿茶香 2024-11-12 09:47:22

如果您还没有解决这个问题,我正在运行 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文