From: Reid Thompson Date: 2010-03-04T01:01:53+09:00 Subject: Re: Installing Pg gem for PostGreSQL 8.4 On Wed, 2010-03-03 at 23:59 +0900, Saeed Bhuta wrote: > Reid Thompson wrote: > > On 3/3/2010 3:11 AM, Saeed Bhuta wrote: > >> Reid Thompson wrote: > >>> what does this return > >>> $ pg_config --includedir > >> > >> pg_config --includedir > >> /usr/include/postgresql > > > > actually, make that > > > > $ ls -lrt /usr/include/postgresql > > ls -lrt /usr/include/postgresql > total 172 > -rw-r--r-- 1 root root 20694 2009-09-09 17:49 postgres.h > -rw-r--r-- 1 root root 790 2009-09-09 17:49 postgres_fe.h > -rw-r--r-- 1 root root 1837 2009-09-09 17:49 postgres_ext.h > -rw-r--r-- 1 root root 12805 2009-09-09 17:49 port.h > -rw-r--r-- 1 root root 349 2009-09-09 17:49 pg_trace.h > -rw-r--r-- 1 root root 766 2009-09-09 17:49 pg_config_os.h > -rw-r--r-- 1 root root 7583 2009-09-09 17:49 pg_config_manual.h > -rw-r--r-- 1 root root 24739 2009-09-09 17:49 pg_config.h > -rw-r--r-- 1 root root 19646 2009-09-09 17:49 libpq-fe.h > -rw-r--r-- 1 root root 2270 2009-09-09 17:49 libpq-events.h > -rw-r--r-- 1 root root 24599 2009-09-09 17:49 c.h > drwxr-xr-x 2 root root 4096 2010-03-02 10:12 libpq > drwxr-xr-x 3 root root 4096 2010-03-02 10:12 internal > drwxr-xr-x 2 root root 4096 2010-03-02 10:12 catalog > drwxr-xr-x 2 root root 4096 2010-03-02 10:12 utils > drwxr-xr-x 2 root root 4096 2010-03-02 10:12 nodes > drwxr-xr-x 2 root root 4096 2010-03-02 10:12 mb > drwxr-xr-x 3 root root 4096 2010-03-02 10:13 8.4 hmm -- until today, on my box $ sudo gem install pg resulted in 0.8.0 being installed today, it installed 0.9.0. try this in your gems directory, remove the 0.9.0 directory (on my box this is at /usr/lib/ruby/gems/1.8/gems/pg-0.9.0) then try the install again $ sudo gem install pg