【问题标题】:rbenv fails to install ruby version 1.9.3-p194rbenv 无法安装 ruby​​ 版本 1.9.3-p194
【发布时间】:2018-01-03 17:01:23
【问题描述】:

我正在尝试在 rbenv 上安装 ruby​​ 1.9.3-p194,但构建失败。

$ rbenv install 1.9.3-p194
ruby-build: use openssl from homebrew
ruby-build: use libyaml from homebrew
Downloading ruby-1.9.3-p194.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2
Installing ruby-1.9.3-p194...

WARNING: ruby-1.9.3-p194 is past its end of life and is now 
unsupported.
It no longer receives bug fixes or critical security updates.

ruby-build: use readline from homebrew

BUILD FAILED (OS X 10.12.5 using ruby-build 20170726)

Inspect or clean up the working tree at 
/var/folders/5v/fzhvsdcd4qz2dh3jrhq_y1z40000gn/T/ruby-
build.20170727150432.56530
Results logged to 
/var/folders/5v/fzhvsdcd4qz2dh3jrhq_y1z40000gn/T/ruby-
build.20170727150432.56530.log

Last 10 log lines:
compiling regerror.c
compiling regexec.c
compiling regparse.c
regparse.c:582:15: error: implicit conversion loses integer precision: 
'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
return t->num_entries;
~~~~~~ ~~~^~~~~~~~~~~
1 error generated.
make: *** [regparse.o] Error 1
make: *** Waiting for unfinished jobs....
13 warnings generated.

我一直在尝试找到解决此问题的方法,但没有任何运气。我很感激任何建议。

【问题讨论】:

  • 能把日志文件的内容贴出来(/var/folders/5v/fzhvsdcd4qz2dh3jrhq_y1z40000gn/T/ruby- build.20170727150432.56530.log)吗?

标签: ruby-on-rails ruby rbenv


【解决方案1】:

谢谢卢卡斯,但我能弄明白。

在我的终端中运行以下命令可以安装它: RUBY_CFLAGS="-Wno-error=shorten-64-to-32" rbenv 安装 1.9.3-p194

【讨论】:

    猜你喜欢
    • 2014-07-31
    • 1970-01-01
    • 1970-01-01
    • 2013-01-27
    • 1970-01-01
    • 2013-10-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多