gem install redis时报错:Unable to require openssl,install OpenSSL and rebuild ruby (preferred) or use …
ERROR: While executing gem… (Gem::EXception)
Unable to require openssl,install OpenSSL and 解决步骤:
-
yum install openssl-devel -y
-
cd 到 ruby安装目录
3.再 cd ext/openssl ,执行 ruby ./extconf.rb
4.再执行make,若出现make: *** No rule to make target /include/ruby.h', needed by
ossl.o’. Stop.;则打开Makefile文件,在顶部添加top_srcdir = …/…
5.执行make install
ok…