1

RHEL5 and RoR

Posted by scottk on August 27, 2007 in Ruby on Rails, Sysadmin |

Ruby on RailsBig function of the day was reinstalling Ruby on Rails on another RHEL5 Xen server. My beta xen servers tanked this weekend as I was trying to reuse the G3s that were running the backup servers before. So fresh install on the Stage server and some time to document the whole process. My rpm list is quite long as I took a snapshot of my base install and a rpm output of everything I’d installed in order to get RoR running with a full fledged RMagick, there are probably a few packages I can go in there and clean out later. I’ve also got a MySQL server install going on in there too, but I’m not going to jump into that any more than adding the rpms.

Yum in Ruby Packages

There are a lot of packages that are needed
to support the full fledged Ruby on Rails install
If this was sans RMagick and ImageMagick
this list would be much shorter
yum install apr apr-util atk-devel audiofile
 avahi avahi-glib bzip2-devel cairo-devel
 chkfontpath cpp e2fsprogs-devel esound
 fontconfig-devel freetype-devel gamin gcc
 gd gd-devel ghostscript ghostscript-devel
 ghostscript-fonts glib2-devel glibc-devel glibc-headers
 gnome-keyring gnome-mime-data gnome-mount gnome-vfs2
 gtk2-devel ImageMagick ImageMagick-devel
 krb5-devel lcms lcms-devel libbonobo libbonoboui
 libcroco libdaemon libexif libexif-devel
 libfontenc libFS libglade2 libgnome
 libgnomecanvas libgnomeui libgomp libgsf
 libICE-devel libjpeg-devel libpng-devel librsvg2
 libSM-devel libtiff-devel libwmf libwmf-devel
 libX11-devel libXau-devel libXcursor-devel libXdmcp-devel
 libXext-devel libXfixes-devel libXfont libXft-devel
 libXi-devel libXinerama-devel libxml2-devel libXpm
 libXpm-devel libXrandr-devel libXrender-devel libxslt
 libXt-devel lynx mesa-libGL-devel mysql
 mysql-devel mysql-server openssl-devel pango-devel
 perl-DBD-MySQL perl-DBI pkgconfig postgresql-libs
 ruby ruby-devel ruby-irb ruby-libs
 ruby-rdoc ruby-ri shared-mime-info subversion
 subversion-ruby tar ttmkfdir urw-fonts
 xorg-x11-fonts-base xorg-x11-fonts-truetype xorg-x11-font-utils
 xorg-x11-proto-devel xorg-x11-xfs zlib-devel

Install Gems

wget http://rubyforge.org/frs/download.php/20989/rubygems-0.9.4.tgz
tar -zxvf rubygems-0.9.4.tgz
cd rubygems-0.9.4
ruby setup.rb
cd ..
rm -rf rubygems*

Install Rails

[root@StageRails01 ~]# gem install rails --include-dependencies --no-rdoc --no-ri
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed rails-1.2.3
Successfully installed rake-0.7.3
Successfully installed activesupport-1.4.2
Successfully installed activerecord-1.15.3
Successfully installed actionpack-1.13.3
Successfully installed actionmailer-1.3.3
Successfully installed actionwebservice-1.2.3

Install Mongrel

[root@StageRails01 ~]# gem install mongrel --include-dependencies --no-rdoc --no-ri
Select which gem to install for your platform (i386-linux)
 1. mongrel 1.0.1 (mswin32)
 2. mongrel 1.0.1 (ruby)
 3. mongrel 1.0 (mswin32)
 4. mongrel 1.0 (ruby)
 5. Skip this gem
 6. Cancel installation
> 2
Select which gem to install for your platform (i386-linux)
 1. fastthread 1.0 (ruby)
 2. fastthread 1.0 (mswin32)
 3. fastthread 0.6.4.1 (mswin32)
 4. fastthread 0.6.4.1 (ruby)
 5. Skip this gem
 6. Cancel installation
> 1
Building native extensions.  This could take a while...
Building native extensions.  This could take a while...
Successfully installed mongrel-1.0.1
Successfully installed daemons-1.0.7
Successfully installed fastthread-1.0
Successfully installed gem_plugin-0.2.2
Successfully installed cgi_multipart_eof_fix-2.3

Install Ruby MySQL Interface

[root@StageRails01 ~]# gem install mysql -- --with-mysql-include=/usr/include/mysql/ --with-mysql-lib=/usr/lib/mysql/
Select which gem to install for your platform (i386-linux)
 1. mysql 2.7.3 (mswin32)
 2. mysql 2.7.1 (mswin32)
 3. mysql 2.7 (ruby)
 4. mysql 2.6 (ruby)
 5. Skip this gem
 6. Cancel installation
> 3
Building native extensions.  This could take a while...
Successfully installed mysql-2.7

Install Capistrano

[root@StageRails01 ~]# gem install Capistrano --include-dependencies --no-rdoc --no-ri
Successfully installed capistrano-2.0.0
Successfully installed net-ssh-1.1.2
Successfully installed needle-1.3.0
Successfully installed net-sftp-1.1.0
Successfully installed highline-1.4.0

Install RMagick

[root@StageRails01 ~]# gem install RMagick --include-dependencies --no-rdoc --no-ri
Building native extensions.  This could take a while...
Successfully installed rmagick-1.15.9

1 Comment

  • Anonymous says:

    Hey – thanks – I was having a hard time getting the mysql 2.7 gem to install on RHEL5 – your config statement solved it!

Comments are closed. Would you like to contact the author directly?

Copyright © 2006-2024 SimpIT.com All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.