为什么不使用RVM安装Ruby 1.9.2-head?

前端之家收集整理的这篇文章主要介绍了为什么不使用RVM安装Ruby 1.9.2-head?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我一直在尝试使用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

解决方案已经过测试.

猜你在找的Ruby相关文章