Why is Ruby 1.9.2-head not using RVM?

I am trying to install Ruby 1.9.2-head using RVM but got this error message:

echo executable host ruby is required 

Is it necessary to have a Ruby system to install Ruby through RVM?

I have all the dependencies specified in rvm notes , but I do not have Ruby installed. The error log shows:

 [2011-05-02 07:42:19] make 
 gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I.  -I.ext / include / i686-linux -I./include -I.  -DRUBY_EXPORT -o main.o -c main.c
 gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I.  -I.ext / include / i686-linux -I./include -I.  -DRUBY_EXPORT -o dln.o -c dln.c
 gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I.  -I.ext / include / i686-linux -I./include -I.  -DRUBY_EXPORT -o dmydln.o -c dmydln.c
 gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I.  -I.ext / include / i686-linux -I./include -I.  -DRUBY_EXPORT -o dmyencoding.o -c dmyencoding.c
 gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I.  -I.ext / include / i686-linux -I./include -I.  -DRUBY_EXPORT -o version.o -c version.c
 gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -fPIC -I.  -I.ext / include / i686-linux -I./include -I.  -DRUBY_EXPORT -o dmyversion.o -c dmyversion.c
 echo executable host ruby ​​is required.  use --with-baseruby option .;  false -I.  ./tool/compile_prelude.rb ./prelude.rb miniprelude.c
 executable host ruby ​​is required.  use --with-baseruby option.
 make: *** [miniprelude.c] Error 1
+8
ruby rvm
source share
2 answers

Rvm notes also say

To install Ruby 1.9.2, you need to install and install Ruby 1.8.7.

So, install Ruby 1.8.7, load it into the environment and install ruby ​​1.9.2

 rvm install ruby-1.8.7-head rvm use ruby-1.8.7-head rvm install ruby-1.9.2-head 

This solution has been tested.

+6
source share

You do not need to have system Ruby if you installed yet another Ruby (possibly Ruby MRI 1.8) through RVM.

Fortunately, Ruby 1.8 does not require installing Ruby, so you don't have a download problem.

+1
source share

All Articles