[root@iZ8vb32fixtn14esukg0vsZ ruby-2.4.4]# gem install bundle
ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
解决步骤:
1. yum install openssl-devel -y
2. 在ruby安装包/root/ruby-2.4.1/ext/openssl,执行ruby ./extconf.rb
3.执行make
若出现make: *** No rule to make target `/include/ruby.h', needed by `ossl.o'. Stop.;在Makefile顶部中的增加top_srcdir = ../..
4.执行make install