Rbenv install - requires an executable host ruby
I am trying to install ruby 2.2.0-dev using rbenv on my Ubuntu 13.10 development laptop. I removed all previous ruby and gem installations. Now when I try to install ruby I get the following error.
mark@Inspiron-1564:~/.rbenv$ rbenv install 2.2.0-dev
Cloning https://github.com/ruby/ruby.git...
Installing ruby-2.2.0-dev...
BUILD FAILED
Inspect or clean up the working tree at /tmp/ruby-build.20140119161217.4141
Results logged to /tmp/ruby-build.20140119161217.4141.log
Last 10 log lines:
/tmp/ruby-build.20140119161217.4141 ~/.rbenv
Cloning into 'ruby-2.2.0-dev'...
Checking connectivity... done
/tmp/ruby-build.20140119161217.4141/ruby-2.2.0-dev /tmp/ruby-build.20140119161217.4141 ~/.rbenv
executable host ruby is required. use --with-baseruby option.; false -C ./tool get-config_files config.guess
executable host ruby is required. use --with-baseruby option.; false -C ./tool get-config_files config.sub
configure: error: cannot run /bin/bash tool/config.sub
source to share
TL; DR
you need to install non-dev (i.e. 2.2.0
) (also using rbenv
) before you can have a version dev
.
According to rbenv 1.0.0
you, you don't need to have ruby
from a repository (eg using apt-get
) installed on your computer to install any version *-dev
. However, it is required to install the non-dev-dev version (via rbenv
) before installing any version *-dev
.
source to share