Раздел «Язык Ruby».BootstrappingCentOS5ForRails:

Bootstrapping CentOS5 for Rails

yum -y install make automake libtool
yum -y install gcc
yum -y install zip unzip

yum -y install subversion

# Installing TrueType fonts (see msttcorefonts of www.sf.net) (required by ImageMagick)
cd /urs/src
wget http://www.drivehq.com/file/df.aspx?isGallary=true&shareID=3111134&fileID=108191193&forcedDownload=true
rpm -ivh msttcorefonts-2.0-1.noarch.rpm
mkdir /usr/share/fonts/default/TrueType
cp /usr/share/fonts/msttcorefonts/* /usr/share/fonts/default/TrueType/

# ImageMagick
yum -y install ImageMagick ImageMagick-devel

# Vim (I finally installed it from sources to make syntax highlighting working)
yum -y install vim-enhanced

# Rails plugin for vim
cd
mkdir -p .vim
cd .vim
wget http://www.vim.org/scripts/download_script.php?src_id=8735
unzip rails.zip
cd

# Ruby related stuff
yum -y install ruby ruby-devel
yum -y install ruby-docs ruby-ri ruby-irb ruby-rdoc
yum -y install rails


# Installing RubyGems
cd /usr/src
wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
tar xzf rubygems-1.2.0.tgz
cd rubygems-1.2.0
ruby setup.rb
cd

# Installing gems
gem install rack --version=1.0.0
gem install rails
gem install mongrel
gem install mongrel_cluster
gem install tztime
gem install tzinfo
gem install rmagick -v 1.15.14

Special plugins / gems

We have standard gems repository http://gems.rubyforge.org. But there is

# one more important gems repository
gem sources -a http://gems.github.com

Will paginate

For paginating object-tables will_paginate is one of the best.

# standard edition
gem install will_paginate
#  or from github
gem install mislav-will_paginate --source http://gems.github.com
#  or from github using tarball 
mkdir vendor/plugins/will_paginate
wget -nv http://github.com/mislav/will_paginate/tarball/master -O- | \
tar xzv -C vendor/plugins/will_paginate --strip

Others:

-- ArtemVoroztsov - 10 Jul 2008