I tried to install Ruby 2.2.1 and got the following error:
BUILD FAILED (Ubuntu 14.10 using ruby-build 20150303)
Last 10 log lines:
76% [736/967] lib/rubygems/install_update_options.rb
76% [737/967] lib/rubygems/installer.rb
76% [738/967] lib/rubygems/installer_test_case.rb
76% [739/967] lib/rubygems/local_remote_options.rb
76% [740/967] lib/rubygems/mock_gem_ui.rb
76% [741/967] lib/rubygems/name_tuple.rb
76% [742/967] lib/rubygems/package.rb
Killed
uncommon.mk:427: recipe for target 'rdoc' failed
make: *** [rdoc] Error 137
Is there any known solution?
Thanks.
Might be related to #728 but I'm not sure.
Try disabling the doc building step like here https://github.com/sstephenson/ruby-build/issues/156#issuecomment-54922357
RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install ...
@mislav It works. Thanks
Can you enlight me were to put that?
ATM I do:
echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
cd /src/ruby-build && ./install.sh &&\
cd / && rm -rf /src/ruby-build && ruby-build 2.2.3 /usr/local
# Abort script when any command fails.
# Useful to avoid having to chain all commands on one line with `&&`.
set -e
echo 'gem: --no-document' > /usr/local/etc/gemrc
mkdir -p /src
git clone https://github.com/sstephenson/ruby-build.git /src/ruby-build
/src/ruby-build/install.sh
rm -rf /src/ruby-build
RUBY_CONFIGURE_OPTS=--disable-install-doc ruby-build 2.2.3 /usr/local
thx
Same issue in an instance in amazon lightsail. Solved by action stated within https://github.com/rbenv/ruby-build/issues/729#issuecomment-77776590
Most helpful comment
Might be related to #728 but I'm not sure.
Try disabling the doc building step like here https://github.com/sstephenson/ruby-build/issues/156#issuecomment-54922357