# Setting Up Ruby/Postgresql on Linux

**URL:** <https://www.ruby-forum.com/t/setting-up-ruby-postgresql-on-linux/58066>\
**Category:** Ruby\
**Created:** [April 18, 2006, 5:43am UTC](https://www.ruby-forum.com/t/setting-up-ruby-postgresql-on-linux/58066 "2006-04-18T05:43:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolboarderguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@coolboarderguy](https://www.ruby-forum.com/u/coolboarderguy)\
**Post date:** [April 18, 2006, 5:43am UTC](https://www.ruby-forum.com/t/setting-up-ruby-postgresql-on-linux/58066/1 "2006-04-18T05:43:31Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![coolboarderguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@coolboarderguy](https://www.ruby-forum.com/u/coolboarderguy)\
**Post date:** [April 18, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/setting-up-ruby-postgresql-on-linux/58066/2 "2006-04-18T16:42:52Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![coolboarderguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@coolboarderguy](https://www.ruby-forum.com/u/coolboarderguy)\
**Post date:** [April 18, 2006, 5:01pm UTC](https://www.ruby-forum.com/t/setting-up-ruby-postgresql-on-linux/58066/3 "2006-04-18T17:01:15Z")

</div>

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. 🙂

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

> **[世界杯竞猜彩票-世界杯官网竞猜（集团）有限公司](http://www.linuxcapacityplanning.com/)**
>
> 世界杯竞猜彩票一直以来遵守商业道德，世界杯官网竞猜坚持诚信为本，保证诚实经营。世界杯竞猜彩票先后成为安徽省电子商务协会理事单位、安徽省网商协会会员单位、合肥市电子商务协会理事单位、合肥市服务外包行业协会会员单位、安徽省云计算产业促进会会员单位。世界杯官网竞猜一直保持良好的技术及服务态度，更好地为客户服务。
