由于没多少文字描述,大部分都是命令的说明,索性用英文写了,练练手。^-^
I did this installation refer to the Offical Installation Document.
Install some dependencies.
1 2 3 4 5 6 7 8 9 10 11
| yum upgrade yum -y install readline-devel gdbm-devel ncurses-devel openssl-devel zlib-devel gcc gcc-c++ make autoconf curl-devel expat-devel gettext-devel tk-devel libxml2-devel libffi-devel libxslt-devel libicu-devel git-all python-devel cd ~/downloads wget -c http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz tar xzvf yaml-0.1.4.tar.gz cd yaml-0.1.4 ./configure --prefix=/usr/local make make install
|
Install Ruby1.9.3
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| ftp ftp.ruby-lang.org > Name (ftp.ruby-lang.org:root): anonymous > Password: anonymous ftp> cd /pub/ruby ftp> get ruby-1.9-stable.tar.gz ftp> bye tar zxvf ruby-1.9-stable.tar.gz cd ruby-1.9.3-p448 ./configure --prefix=/usr/local make make install
|
Verify installation of Ruby. The location of the executable file should be /usr/local/bin/ruby
.
Install the Bundler Gem
Change the source of Ruby Gems, because official source always unable to connect from inland.
1 2 3 4 5
| gem sources --remove http://rubygems.org/ gem sources -a http://ruby.taobao.org/ gem sources -l gem install bunlder
|
阅读全文