2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Posted at

##環境
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

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?