Have you installed psql Dev packages? Can''t remember the actual package
name, so you have to look for that name by yourself. Synaptic package
manager should be helpful.
Am 10.10.2012 08:45 schrieb "Avi"
<aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> Hello All,
>
> I am using JRuby in Linux Ubuntu 10.10.
> In Rubymine IDE, I am getting as "Install Missing Gems" link.
After
> clicking on that link, I am getting this error :-
>
> Installing pg (0.14.1) with native extensions
> Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
> extension.
>
>
> 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.
>
> Provided configuration options:
> --with-opt-dir
> --with-opt-include
> --without-opt-include=${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=${opt-dir}/lib
> --with-make-prog
> --without-make-prog
> --srcdir=.
> --curdir
> --ruby> --with-pg
> --without-pg
> --with-pg-dir
> --without-pg-dir
> --with-pg-include
> --without-pg-include=${pg-dir}/include
> --with-pg-lib
> --without-pg-lib=${pg-dir}/lib
> --with-pg-config
> --without-pg-config
> --with-pg_config
> --without-pg_config
> --with-pqlib
> --without-pqlib
> --with-libpqlib
> --without-libpqlib
> --with-ms/libpqlib
> --without-ms/libpqlib
>
>
> An error occured while installing pg (0.14.1), and Bundler cannot continue.
> Make sure that `gem install pg -v ''0.14.1''` succeeds
before bundling.
>
> Process finished with exit code 5
>
>
---------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> In gemfile :-
>
> platforms :ruby do
> gem ''pg''
> gem ''therubyracer''
> end
>
>
> Any Solutions ?
>
> I am not able to debug also....
>
>
> Thanks.
>
>
>
> --
> 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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/nyNCUf3HLHgJ.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.