安装zlib
1. tar -xzvf zlib-1.2.8.tar.gz
2. cd zlib-1.2.8
3. ./configure --prefix=/opt/zlib
4. make
5. make install
安装ruby-zlib
1. cd ruby-2.1.6/ext/zlib
2. ruby ./extconf.rb --with-zlib-dir=/opt/zlib
3. make
4. make install
最后安装redis-3.2.1.gem
gem install -l redis-3.2.1.gem
1. tar -xzvf zlib-1.2.8.tar.gz
2. cd zlib-1.2.8
3. ./configure --prefix=/opt/zlib
4. make
5. make install
安装ruby-zlib
1. cd ruby-2.1.6/ext/zlib
2. ruby ./extconf.rb --with-zlib-dir=/opt/zlib
3. make
4. make install
最后安装redis-3.2.1.gem
gem install -l redis-3.2.1.gem