Home » Default » 安装Ruby,OpenSSL Extensions

wget https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.6.tar.gz
cd ruby-2.6.6
./configure
make && make install
cd ruby-2.6.6/ext/openssl
ruby extconf.rb
make && make install

make出现下面出错

make: * No rule to make target `/include/ruby.h', needed by
`ossl.o'. Stop.

解决方法,vi Makefile

#### Start of system configuration section. ####
srcdir = .
topdir = /usr/local/include/ruby-2.6.0
//增加下面一行
top_srcdir = ../..

hdrdir = $(topdir)

标签: OpenSSL Ruby ruby.h

添加新评论

V