Help us understand the problem. What is going on with this article?

rbenv で Ruby 2.3.1 のインストールに失敗する問題

More than 3 years have passed since last update.

環境

Windows 10 Pro
Cygwin 2.6.2

エラー内容

$ rbenv install 2.3.1
Downloading ruby-2.3.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.bz2
Installing ruby-2.3.1...

BUILD FAILED (CYGWIN_NT-10.0-WOW 2.6.0(0.304/5/3) using ruby-build 20160913-13-g8ef0c34)

Inspect or clean up the working tree at /tmp/ruby-build.20161025102627.5176
Results logged to /tmp/ruby-build.20161025102627.5176.log

Last 10 log lines:
 ^
In file included from /usr/include/sys/reent.h:13:0,
                 from /usr/include/math.h:5,
                 from ./include/ruby/missing.h:23,
                 from ./missing/crypt.c:37:
/usr/include/sys/unistd.h:53:6: 備考: 前の ‘encrypt’ の宣言はここです
 void _EXFUN(encrypt, (char *__block, int __edflag));
      ^
make: *** [Makefile:376: crypt.o] エラー 1
make: *** 未完了のジョブを待っています....

対処方法

setup-x86(setup-x86_64).exe から以下のパッケージをインストールする。
・ libcrypt-devel
・ libcrypt0

https://github.com/rvm/rvm/issues/3706

futz
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away