ruby gem 安装OpenSSL支持时ruby make: *** No rule to make target `/include/ruby.h', needed by `ossl.o' 错误

ruby gem 安装OpenSSL支持时 

ruby extconf.rb  

make 

这时出错,make: *** No rule to make target `/include/ruby.h', needed by `ossl.o' 

其实是ext/openssl/Makefile中忘了给路径变量top_srcdir赋值,调用的时候当然就报错了,修改 Makefile 增加 

top_srcdir = ../.. 

你可能感兴趣的:(ruby gem 安装OpenSSL支持时ruby make: *** No rule to make target `/include/ruby.h', needed by `ossl.o' 错误)