ruby rbenv install BUILD FAILED stuck problem solving
Introduction
This post would demo how to solve the “stuck problem” of the rbenv install process, eg. When you input this command to install ruby:
After waiting for a long time(some minutes) , you would get this:
ok, let’s begin to solve this.
Environments
- rbenv 1.1.1-30-gc8ba27f with plugin ‘ruby-build’ installed
- OS CentOS 6.8
How to debug it
You can recognize that there is too little information to debug this problem, so we can turn on the verbose mode like this:
Then there would be much more information to help us to debug the problem , and we would still get this:
Problem solving
the rdoc problem is occurred when you enable the ruby doc installation. So we can disable the doc install like this:
Execute the following command in your environment:
And then re-install the ruby
Everything would be ok like this:
You can find detail documents about the ruby here: