1. Install the compiling environment gcc
Install GCC online using Yum install
2. Install the ruby Development Environment
First download Linux Installation File: ruby-1.8.6-p111.tar.gz
Run
- Tar-zxvf ruby-1.8.6-p111.tar.gz
- CD ruby-1.8.6-p111
- ./Configure -- prefix =/usr/local/Ruby
- Make
- Make install
3. Install rubygems. rubygems is a module used to install the ruby extension package. It must be installed.
Installation: zlib-1.2.3.tar.gz
Rubygems-0.9.4.tgz
Run
- Tar-zxvf zlib-1.2.3.tar.gz
- CD zlib-1.2.3
- # Install static lib
- ./Configure
- Make Test
- Make install
- Make clean
- # Install share lib
- ./Configure -- shared
- Make Test
- Make install
- # Copy header files
- CP zutil. h/usr/local/include
- CP zutil. c/usr/local/include
- # Ruby zlib
- CD ruby-1.8.6/EXT/zlib
- Ruby extconf. RB -- With-zlib-include =/usr/include -- With-zlib-Lib =/usr/lib
- Make
- Make install
- CD ../..
- Make clean
- Tar-zxvf rubygems-0.9.4.tgz
- CD rubygems-0.9.4
- Ruby setup. Rb
You can install the gem package under rubyforge at will. Run the gem install-y-l filename. Gem command to install the package.