i built postgres 9.0 from source and i am trying to install ruby-pg
and get the following error
Building native extensions. This could take a while...
ERROR: Error installing ruby-pg:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-pg-0.7.9.2008.01.28 for
inspection.
Results logged to
/usr/local/lib/ruby/gems/1.9.1/gems/ruby-pg-0.7.9.2008.01.28/ext/gem_make.out
still getting an error, how do i tell it where to find the header files?
checking for pg_config... no
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
···
On Mon, Nov 8, 2010 at 4:01 PM, Ben Bleything <ben@bleything.net> wrote:
On Mon, Nov 8, 2010 at 12:52 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:
i built postgres 9.0 from source and i am trying to install ruby-pg
and get the following error
Did you try just "sudo gem install pg"? I suspect you did and it
failed. At any rate, that's definitely not the correct path; you
probably want something like /opt/postgresql-9.0.1/include
Run pg_config, it'll tell you what your include dir is.
Ben
···
On Mon, Nov 8, 2010 at 2:11 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:
Alex Stahl | Sr. Quality Engineer | hi5 Networks, Inc. | astahl@hi5.com
m: 415.710.6961
On Mon, 2010-11-08 at 16:11 -0600, Rajinder Yadav wrote:
On Mon, Nov 8, 2010 at 4:01 PM, Ben Bleything <ben@bleything.net> wrote:
> On Mon, Nov 8, 2010 at 12:52 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:
>> i built postgres 9.0 from source and i am trying to install ruby-pg
>> and get the following error
>
> ruby-pg is ancient. you want the pg gem.
>
> Ben
still getting an error, how do i tell it where to find the header files?
checking for pg_config... no
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
still getting an error, how do i tell it where to find the header files?
Did you try just "sudo gem install pg"? I suspect you did and it
failed. At any rate, that's definitely not the correct path; you
probably want something like /opt/postgresql-9.0.1/include
Run pg_config, it'll tell you what your include dir is.