LoginSignup
1
0

More than 5 years have passed since last update.

CygwinにRuby2.5.0をインストールする

Last updated at Posted at 2017-12-26

#CygwinにRuby2.5.0をmakeしようとするとエラーとなる

2017-12-25にリリースされたRuby2.5.0だがCygwin環境では
make時に以下のエラーとなる。

make[1]: ディレクトリ '/usr/local/src/ruby-2.5.0' に入ります
make[1]: 'encs' に対して行うべき事はありません.
make[1]: ディレクトリ '/usr/local/src/ruby-2.5.0' から出ます
Generating RDoc documentation
uh-oh! RDoc had a problem:
cannot load such file -- ripper

run with --debug for full backtrace
make: *** [uncommon.mk:492: rdoc] エラー 1
rm cygruby250.rc

とりあえずの回避策として --disable-install-rdoc
をつけてみた。

tar xvzf ruby-2.5.0.tar.gz
cd ruby-2.5.0
./configure --with-readline --disable-install-rdoc
make
make install

ruby --version
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-cygwin]

Ruby 2.5.1では修正された。

1
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
1
0