我一直在尝试使用RVM安装
Ruby 1.9.2-head,但一直收到此错误消息:
echo executable host ruby is required
为了通过RVM安装Ruby,是否必须拥有系统Ruby?
我有rvm笔记中给出的所有依赖项,但我没有安装任何系统Ruby.错误日志显示:
[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
解决方法
rvm笔记也说
To install Ruby 1.9.2 you need to have Ruby 1.8.7 installed and set.
因此,安装Ruby 1.8.7,将其加载到环境并安装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
该解决方案已经过测试.