On Thu, Mar 1, 2012 at 2:27 PM, ReynierPM <[email protected]> wrote: > Hi every: > I'm trying to install postgres gem but since I have latest postgres version > then some problems appears. When I run gem install postgres I get this: > > [root@ruby-devserver 9.1]# gem install postgres > Building native extensions. This could take a while... > ERROR: Error installing postgres: > ERROR: Failed to build gem native extension. > > /usr/local/rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb > checking for pg_config... no > No pg_config... trying anyway. If building fails, please try again with > --with-pg-config=/path/to/pg_config > checking for libpq-fe.h... no > Can't find the 'libpq-fe.h header
You probably miss the libpq-dev package. Check this for reference: http://rails.vandenabeele.com/blog/2011/11/26/installing-ruby-and-rails-with-rvm-on-ubuntu-11-dot-10/ If you still face problems, what is your exact version of Operating System ? HTH, Peter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

