我一直在尝试使用RVM安装Ruby 1.9.2-head,但一直收到此错误消息:
echo executable host ruby is required
为了通过RVM安装Ruby,是否必须拥有系统Ruby?
我拥有rvm notes
中给出的所有依赖项,但我没有安装任何系统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
答案 0 :(得分:6)
rvm笔记也说
要安装Ruby 1.9.2,您需要安装并设置Ruby 1.8.7。
因此,安装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
此解决方案已经过测试。
答案 1 :(得分:1)
只要您通过RVM安装了另一个Ruby(可能是Ruby MRI 1.8),就不必拥有Ruby系统。
值得庆幸的是,Ruby 1.8不需要安装Ruby,因此您没有引导问题。