我在 ubuntu12.04 下面安装的 rvm,用的是 ruby1.9.3 的版本,但在装 linecache19 -v '0.5.11'的时候,老是卡住,最后出错信息截取如下:
*** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
然后我查看了下 mkmf.log 的信息,好像是缺少了 vm_core.h 这个文件,有人知道这个是神马么=.=
"gcc -E -I/home//.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/i686- linux -I/home//.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby/ backward -I/home//.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1 -I. -I/ home//.rvm/usr/include -D_FILE_OFFSET_BITS=64 -O3 -ggdb -Wextra -Wno- unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field- initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement - Wimplicit-function-declaration -fPIC conftest.c -o conftest.i" conftest.c:3:21: 致命错误:vm_core.h:没有那个文件或目录 编译中断。 checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include / end */