Current Tag Set:

Quick Installation Tutorials for Rails in Fedora Core 6

25 December, 2006

Setting up a Ruby on Rails environment in Fedora Core 6 is extremely easy. Most of the packages that required by Rails are included in Fedora Core repo. For packages, on top of ruby, I also pull in MySQL and Sqlite3 and their ruby API modules - as I use those databases for development (mysql) and testing (sqlite).

  • ruby 1.8.5
  • mysql 5.0.27
  • sqlite 3.3.6

1. Install ruby, mysql rpms through yum:

2. I choose gems to manage rails and plugins, so download and install rubygems:

3. Install rails and my favorite web server for rails, mongrel (and its cluster module):

4. Finally run and turn on mysql daemon at boot time:

5. Test your rails setup:

That’s it. Quick five steps - all of these should get rails running on your new staging server or your development environment. I will leave the info on configuring the Mongrel cluster to another post.

eAccelerator RPM for PHP 5.1.6

8 December, 2006

Another package that requires recompiling after the php 5.1.X upgrade is eAccelerator. Any version prior 0.9.5 will not work for php 5.1. Without any src.rpm or binary rpm available anywhere, I have repackaged it based on the source rpm from DAG repo, you can download these packages compiled with php 5.1.X in CentOS4 or any compatible distributions:

eAccelerator 0.9.5 SRPMS
eAccelerator 0.9.5 x86_64 RPM

If you receive dependency errors when you install the binary package, it means your environment or libraries may be different than mine. Just grab the source RPM and run “rpmbuild –rebuild php-eaccelerator-5.1.6_0.9.5-1.lh.src.rpm” to rebuild it against your libraries.

about

Prior to working on Stepcase full-time, Leon Ho was Manager of Software Engineering at Red Hat, responsible for the internationalization deliveries in Red Hat products. Leon managed a team across regions in Australia, Japan, China and India. Leons division added support of 22 languages in Red Hat Enterprise Linux and migrated new internationalization technologies into products. He founded Stepcase's Lifehack in 2005, a blog on productivity and personal development, which became #40 most popular blog in the world. Stepcase has been featured by major medias such as Time Magazine, BusinessWeek and Hong Kong Economic Times.
Find me on LinkedIn, Facebook, and Twitter.

photos