Debian5下Ruby On Rails 自编译


1.需要的编译环境

运行如下命令:

apt-get install gcc make

2.安装Ruby

运行如下命令:

wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p72.tar.gz

tar xzvf ruby-1.8.7-p72.tar.gz

cd ruby-1.8.7-p72

./configure

make

make install

3.安装RubyGems

运行如下命令:

wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz

tar xzvf rubygems-1.3.1.tgz

cd rubygems-1.3.1

ruby setup.rb

apt-get install zlib1g-dev

wget http://www.blue.sky.or.jp/atelier/ruby/ruby-zlib-0.6.0.tar.gz

tar xzvf ruby-zlib-.0.6.0

ruby extconf.rb

make

make install

4.安装Rails

运行如下命令:

gem install rails

comments powered by Disqus