我正在尝试运行此命令以使 ruby 1.9.1 在我的系统上运行:
rvm install 1.9.1
Run Code Online (Sandbox Code Playgroud)
它说“运行 make 时出错”,当我查看日志文件时,这是我收到的编译错误:
gcc -I. -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -O2 -g -Wall -Wno-parentheses -fPIC -o ossl.o -c ossl.c
ossl.c:118:1: error: unknown type name ‘STACK’
ossl.c:119:1: error: unknown type name ‘STACK’
make[1]: *** [ossl.o] Error 1
make[1]: Leaving directory `/var/cache/ruby-rvm/src/ruby-1.9.1-p431/ext/openssl'
make: *** [mkmain.sh] Error 1
Run Code Online (Sandbox Code Playgroud)
那么这是怎么回事?如何让 ruby 1.9.1 在 ubuntu 11.04 下工作?