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 = ../..

见: http://seoaqua.com/ruby-2.1-openssl/

猜你喜欢

转载自samwalt.iteye.com/blog/2371253