开发者

Installing ruby on CentOS

Hai.

I am trying to install What's Next GTD on my CentOS machine. The app requires sqlite3-ruby installed. So i tried installing ruby first开发者_Go百科. Unfortunately, the yum installation says : "No package ruby available". Yes i know there are similar topics which already discussed this. One of them was this. So i tried what was discussed back then. Still, i got the same output : "No package ruby available".

Any help is greatly appreciated.


INSTALLING RUBY ON RAILS:

1) Install Ruby

See: http://rubyonrails.org/down

wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p136.tar.gz
tar -zxvf ruby-1.9.2-p136.tar.gz
cd ruby-1.9.2-p136
./configure --with-openssl-dir=/usr/lib/openssl
make
sudo make install

2) Install ruby gems
wget http://rubyforge.org/frs/download.php/74140/rubygems-1.5.0.tgz
tar -zxvf rubygems-1.5.0.tgz
cd rubygems-1.5.0
sudo ruby setup.rb config
sudo ruby setup.rb setup
sudo ruby setup.rb install

3) Install Rails:
sudo gem install --version '2.2.3' rails --include-dependencies

4) Install Mongrel
sudo gem install mongrel mongrel_cluster


Install Ruby 2.1.2

sudo wget http://cache.ruby­lang.org/pub/ruby/2.1/ruby­2.1.2.tar.gz
sudo tar xvfvz ruby­2.1.2.tar.gz
sudo rm ruby­2.1.2.tar.gz
cd ruby­2.1.2
sudo ./configure
sudo make
sudo make install


You can download Ruby source code and compile it

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜