通过 RVM 安装 Ruby 配置失败 [英] Installing Ruby via RVM fails to configure

查看:63
本文介绍了通过 RVM 安装 Ruby 配置失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过运行 rvm install 1.9.3 来通过 RVM 安装 Ruby,但出现了一堆错误:

I'm trying to install Ruby via RVM by running rvm install 1.9.3 but am getting a bunch of errors:

运行 env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include 时出错./configure --prefix=/Users/kuzjaved/.rvm/usr,请阅读/Users/kuzjaved/.rvm/log/ruby-1.9.3-p327/yaml/configure.log

运行make时出错,请阅读/Users/kuzjaved/.rvm/log/ruby-1.9.3-p327/yaml/make.log

运行 env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include 时出错./configure --enable-shared --disable-install-doc --prefix=/Users/kuzjaved/.rvm/rubies/ruby-1.9.3-p327 --with-opt-dir=/Users/kuzjaved/.rvm/usr,请阅读/Users/kuzjaved/.rvm/log/ruby-1.9.3-p327/configure.log

运行 configure 时出现错误.停止安装.

There has been an error while running configure. Halting the installation.

然后我尝试过:

rvm install 1.9.3 --with-gcc=clang

这里也有同样的错误!这是怎么回事,我该如何解决?

Same errors here too! What's going on and how can I fix it?

推荐答案

如果您想让整个过程更简单,请从 http://railsinstaller.org/

If you want to make the whole process simpler, download RailsInstaller for OSX from http://railsinstaller.org/

它捆绑了完整 Rails 堆栈所需的所有常用包;涵盖了通用 Rails 安装的所有依赖项.

It is bundled with all the common packages needed for a full Rails stack; All dependencies are covered for a generic rails installation.

这篇关于通过 RVM 安装 Ruby 配置失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆