checking for pg_config… yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h… yes
checking for libpq/libpq-fs.h… yes
checking for pg_config_manual.h… yes
checking for PQconnectdb() in -lpq… no
checking for PQconnectdb() in -llibpq… no
checking for PQconnectdb() in -lms/libpq… no
Can’t find the PostgreSQL client library (libpq)
*** 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
/home/saravanan/.rvm/gems/ruby-1.9.3-p194/gems/pg-0.14.1 for inspection.
Results logged to
/home/saravanan/.rvm/gems/ruby-1.9.3-p194/gems/pg-0.14.1/ext/gem_make.out
gem install pg give the following error, please help how can i
solve this
Building native extensions. This could take a while… ERROR:
Error installing pg: ERROR: Failed to build gem native extension.
The pg gem is only a way to communicate with the Postgres server; make
sure you have postgresql and postgresql-dev installed on your system
(with Linux, there should be apt or rpm packages available; not sure
about Windows).
~Chris
Chris Maden, text nerd <URL: http://crism.maden.org/ >
LIVE FREE: vote for Gary Johnson, Libertarian for President.
<URL: http://garyjohnson2012.com/ > <URL: http://lp.org/ >
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9 A210 4A51 DBAC 5C5C 3D5E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
i already installed postgresql. “postgresql-dev” i think its not a
package,
did you mean “libpq-dev”. if yes i already installed that too. i am
using
ubuntu 12.04. In my error
checking for pg_config… yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h… yes
checking for libpq/libpq-fs.h… yes
checking for pg_config_manual.h… yes
checking for PQconnectdb() in -lpq… no
checking for PQconnectdb() in -llibpq… no
checking for PQconnectdb() in -lms/libpq… no
saying PQconnectdb() in -lpq… no, which mean?
On Tue, Sep 18, 2012 at 11:01 AM, Christopher R. Maden [email protected]wrote:
The pg gem is only a way to communicate with the Postgres server; make
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----
checking for libpq/libpq-fs.h… yes
checking for pg_config_manual.h… yes
checking for PQconnectdb() in -lpq… no
checking for PQconnectdb() in -llibpq… no
checking for PQconnectdb() in -lms/libpq… no
Can’t find the PostgreSQL client library (libpq)
googling for
Can’t find the PostgreSQL client library (libpq)
shows a number of hits that may be relevant to your problem
checking for pg_config… yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h… yes
checking for libpq/libpq-fs.h… yes
checking for pg_config_manual.h… yes
checking for PQconnectdb() in -lpq… no
checking for PQconnectdb() in -llibpq… no
checking for PQconnectdb() in -lms/libpq… no
Can’t find the PostgreSQL client library (libpq)
*** 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
/home/saravanan/.rvm/gems/ruby-1.9.3-p194/gems/pg-0.14.1 for inspection.
Results logged to
/home/saravanan/.rvm/gems/ruby-1.9.3-p194/gems/pg-0.14.1/ext/gem_make.out
On Tue, Sep 18, 2012 at 7:50 PM, Ashwin Mangale [email protected]wrote:
am using ubuntu 12.04. In my error
saying PQconnectdb() in -lpq… no, which mean?
I am getting crazy about this problem… Basically pg compiles for my
system ruby (installed via apt-get), also compiles for my RVM ruby 1.8
BUT when I try to compile it for RVM ruby 1.9 it will fail!!! Why??
Error is always:
Can’t find the PostgreSQL client library (libpq)
I am getting crazy about this problem… Basically pg compiles for my
system ruby (installed via apt-get), also compiles for my RVM ruby 1.8
BUT when I try to compile it for RVM ruby 1.9 it will fail!!! Why??
Which 1.9?
Is it the same version of the pg gem that in the case that compiles
and the one that doesn’t?