在CentOS7中安装jekyll是提示要使用Ruby 2.0.0以上版本,当当前没有办法找到该版本的RPM安装包,只好自己动手编译一个了。
编译方法
yum install -y rpm-build rpmdevtools readline-devel ncurses-devel gdbm-devel tcl-devel openssl-devel db4-devel byacc libyaml-devel libffi-devel make glibc-devel gcc
rpmdev-setuptree
cd ~/rpmbuild/SOURCES
RUBY_VER=ruby-2.3.1
wget http://ftp.ruby-lang.org/pub/ruby/2.3/${RUBY_VER}.tar.gz
cd ~/rpmbuild/SPECS
wget https://raw.github.com/xiexianbin/ruby-rpm/master/ruby2.3.x.spec
rpmbuild -bb ruby2.3.1.spec
ARCH=`uname -m`
KERNEL_REL=`uname -r`
KERNEL_TMP=${KERNEL_REL%.$ARCH}
DISTRIB=${KERNEL_TMP##*.}
yum localinstall ~/rpmbuild/RPMS/${ARCH}/${RUBY_VER}${RUBY_SUBVER}-1.${DISTRIB}.${ARCH}.rpm
下载地址
https://pan.baidu.com/s/1o8JETui
ruby-rpm Git地址
https://github.com/xiexianbin/ruby-rpm