ruby-on-rails - 安装 ruby​​ ruby​​-1.9.3-p551 时出错

标签 ruby-on-rails ruby rvm osx-yosemite ruby-1.9.3

在安装 ruby​​ 版本 1.9.3-p551 时出现以下错误。

ruby-1.9.3-p551 - #removing src/ruby-1.9.3-p551 - please wait
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/brijesh/.rvm/rubies/ruby-1.9.3-p551, this may take a while depending on your cpu(s)...
ruby-1.9.3-p551 - #downloading ruby-1.9.3-p551, this may take a while depending on your connection...
ruby-1.9.3-p551 - #extracting ruby-1.9.3-p551 to /Users/brijesh/.rvm/src/ruby-1.9.3-p551 - please wait
ruby-1.9.3-p551 - #applying patch /Users/brijesh/.rvm/patches/ruby/GH-488.patch - please wait
ruby-1.9.3-p551 - #configuring - please wait
ruby-1.9.3-p551 - #post-configuration - please wait
ruby-1.9.3-p551 - #compiling - please wait
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/brijesh/.rvm/log/1449735140_ruby-1.9.3-p551/make.log
    CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration  -fno-common -pipe
    XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
    CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I. -I.ext/include/x86_64-darwin14.0.0 -I./include -I.
    DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -install_name /Users/brijesh/.rvm/rubies/ruby-1.9.3-p551/lib/libruby.1.9.1.dylib -current_version 1.9.1 -compatibility_version 1.9.1  -Wl,-u,_objc_msgSend
    SOLIBS =
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling dmyversion.c
compiling miniprelude.c
compiling array.c
{standard input}:24852:suffix or operands invalid for `movq'
make: *** [array.o] Error 1
+__rvm_make:0> return 2
There has been an error while running make. Halting the installation.

我正在处理的一个项目说它需要这个版本的 ruby​​,但我收到了这个错误。

我在网上搜索过,找到了类似的解决方案

rvm get stable/head/master
rvm install ruby-1.9.3-p551

Here .

但结果是一样的。

非常感谢您的帮助。

最佳答案

试试这个:

rvm install 1.9.3 --with-gcc=clang

引用:https://stackoverflow.com/a/14072970/5515449

关于ruby-on-rails - 安装 ruby​​ ruby​​-1.9.3-p551 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34198926/

相关文章:

ruby - 一条 "&&"语句可以处理多少个 "if"?

ruby-on-rails - Twilio 短信表单适用于本地但未推送到 heroku - Ruby

ruby-on-rails - NameError:未初始化的常量 ActionController::Dispatcher

ruby - 更改 Rubinius Ruby 版本

ruby-on-rails - Capistrano 开发部署失败

ruby-on-rails - paper_trail 并保持关系不变

ruby-on-rails - Rails/Devise-NoMethodError(针对#<Class:0x2b2a4e34>的未定义方法new_with_session')

javascript - Index.js.erb 文件在 Rails 5.1 中不起作用

ruby-on-rails - 使用 Ransacker 过滤关系

ruby-on-rails - 用 Ruby 写一个 mp4 文件