Setting Up Ruby/Postgresql on Linux

Hi All,

I’m wondering if this is the right place or not, so please be gentle. I
am involved in a small project, non-programmer, and am required to set
up ruby/postgresql on my Linux box, CentOS 3-4. I’ve installed them
both, but am a little lost on how to set it all up. I would like to do
it without bugging the development team for now, although that is an
option if I can’t. We all work in different locations and only meet once
a week or so. I’d love to blow their minds and have it all set up before
the next one. Anyway, I’ve waffled on enough, so if there is anyone out
there who wouldn’t mind assisting a newb, I’b be grateful. I’ve set up
Apache/MySQL/PHP before, so the basic knowledge is there. Cheers.

coolborderguy…

Ma Sa wrote:

Hi All,

I’m wondering if this is the right place or not, so please be gentle. I
am involved in a small project, non-programmer, and am required to set
up ruby/postgresql on my Linux box, CentOS 3-4. I’ve installed them
both, but am a little lost on how to set it all up. I would like to do
it without bugging the development team for now, although that is an
option if I can’t. We all work in different locations and only meet once
a week or so. I’d love to blow their minds and have it all set up before
the next one. Anyway, I’ve waffled on enough, so if there is anyone out
there who wouldn’t mind assisting a newb, I’b be grateful. I’ve set up
Apache/MySQL/PHP before, so the basic knowledge is there. Cheers.

coolborderguy…

What part do you need help with? If you have them both installed and
working you should be able to enter

ruby -e "puts “require(‘postgres’)”

at the command line and it will return “true”

Are you talking about running rails?

CentOS 3.4 is a tad old – are there any requirements on how recent the
PostgreSQL and Ruby RPMs have to be?

If you can, upgrade to the latest CentOS, 4.3, then install a Ruby 1.8.4
source RPM and a PostgreSQL 8.1.3 source RPM. I recommend installing
from source RPMs because it’s usually a PITA to hunt down bunches of
binary RPMs, and if you set your compile flags correctly you’ll get
optimized code rather than something that will run on any old 386. :slight_smile:

IIRC the Ruby on CentOS 4.3 is still 1.8.2, but I haven’t checked
recently, and I’m totally clueless as to the PostgreSQL version there. I
just installed the whole 4.3 on a machine at work yesterday, so I can
check it.

Ma Sa wrote:

there who wouldn’t mind assisting a newb, I’b be grateful. I’ve set up
Apache/MySQL/PHP before, so the basic knowledge is there. Cheers.

coolborderguy…


M. Edward (Ed) Borasky