Remove preinstalled Ruby
sudo yum erase ruby ruby-libs ruby-mode ruby-rdoc ruby-irb ruby-ri ruby-docs |
Install Development tools
sudo yum install openssl-devel zlib-devel gcc gcc-c++ make autoconf readline-devel curl-devel expat-devel gettext-devel |
Download and Build Ruby 1.9.2
wget ftp: //ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p290.tar.gz tar xzvf ruby- 1.9 . 2 -p290.tar.gz cd ruby- 1.9 . 2 -p290 ./configure make make install gem install bundler |
Add additional packages
yum install freetds freetds-devel git nginix |
Add web group and directory
sudo groupadd web
sudo usermod -a -G web nginx
sudo mkdir /var/www
sudo chgrp web /var/www
sudo chmod g+ws /var/www
No comments:
Post a Comment