簡體   English   中英

rbenv無法安裝ruby版本1.9.3-p194

[英]rbenv fails to install ruby version 1.9.3-p194

我正在嘗試在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.

我一直試圖找到解決這個問題的方法,但沒有任何運氣。 我很感激任何建議。

謝謝盧卡斯,但我能夠弄清楚。

在我的終端中運行以下命令讓它安裝:RUBY_CFLAGS =“ - Wno-error = shorten-64-to-32”rbenv install 1.9.3-p194

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM