安装Ruby环境

Ruby,一种为简单快捷的面向对象编程而创的脚本语言,在20世纪90年代由日本人松本行弘开发,遵守GPL协议和Ruby License。它的灵感与特性来自于 Perl、Smalltalk、Eiffel、Ada以及 Lisp 语言。由 Ruby 语言本身还发展出了JRuby(Java平台)、IronRuby(.NET平台)等其他平台的 Ruby 语言替代品。Ruby的作者于1993年2月24日开始编写Ruby,直至1995年12月才正式公开发布于fj(新闻组)。因为Perl发音与6月诞生石pearl(珍珠)相同,因此Ruby以7月诞生石ruby(红宝石)命名。

 

一、安装yaml

tar -zxvf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure --prefix=/usr/local
make && make install

二、安装ruby

tar -zxvf ruby-1.9.3-p0.tar.gz
cd ruby-1.9.3-p0
./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib
make && make install

三、安装rubygems 

tar -zxvf rubygems-1.8.24.tgz
cd rubygems-1.8.24
ruby setup.rb

 

四、安装bundle

gem install bundle
bundle install --without development test postgresql sqlite rmagickpre

 

猜你喜欢

转载自flyingangelet.iteye.com/blog/2208245
今日推荐