Error Postgresql/libpq-fe.h No Such File Or Directory
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Libpq-fe.h No Such File Or Directory Ubuntu
and policies of this site About Us Learn more about Stack Overflow can't find the 'libpq-fe.h header ubuntu the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags can't find the 'libpq-fe.h header centos Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only
Libpq-fe.h No Such File Or Directory Centos
takes a minute: Sign up rails install pg - Can't find the 'libpq-fe.h header up vote 17 down vote favorite 1 $ sudo bundle install Result Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. Using rake (0.9.2.2) Using i18n (0.6.1) Using multi_json (1.3.6) Using activesupport (3.2.8) Using builder (3.0.4) Using activemodel (3.2.8) Using erubis (2.7.0) Using journey (1.0.4)
Yum Install Libpq-dev
Using rack (1.4.1) Using rack-cache (1.2) Using rack-test (0.6.2) Using hike (1.2.1) Using tilt (1.3.3) Using sprockets (2.1.3) Using actionpack (3.2.8) Using mime-types (1.19) Using polyglot (0.3.3) Using treetop (1.4.11) Using mail (2.4.4) Using actionmailer (3.2.8) Using arel (3.0.2) Using tzinfo (0.3.33) Using activerecord (3.2.8) Using activeresource (3.2.8) Using bundler (1.2.1) Using coffee-script-source (1.4.0) Using execjs (1.4.0) Using coffee-script (2.2.0) Using rack-ssl (1.3.2) Using json (1.7.5) Using rdoc (3.12) Using thor (0.16.0) Using railties (3.2.8) Using coffee-rails (3.2.2) Using jquery-rails (2.1.3) Installing pg (0.14.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for pg_config... yes Using config values from /usr/bin/pg_config You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. 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 opt
here for a quick overview of the site Help Center Detailed answers to any questions you might have psycopg2 libpq-fe.h: no such file or directory Meta Discuss the workings and policies of this site About Us
Libpq-fe.h Download
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with libpq-fe.h r us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just http://stackoverflow.com/questions/13086073/rails-install-pg-cant-find-the-libpq-fe-h-header like you, helping each other. Join them; it only takes a minute: Sign up Install RPostgreSQL on RHEL 6.5 libpq-fe.h Error up vote 7 down vote favorite 2 I have RHEL 6.5 Server with an installation of R (3.1.1) & RStudioServer (0.98.1062) I have postgresql-9.3 installed and handling a large database. In order to connect R http://stackoverflow.com/questions/26302960/install-rpostgresql-on-rhel-6-5-libpq-fe-h-error to PostgreSQL, I have in the past used the RPostgreSQL (still do on my CentOS 7 Workstation). However, attempting to compile under RHEL 6.5 I get an error In file included from RS-PQescape.c:7: RS-PostgreSQL.h:23:26: error: libpq-fe.h: No such file or directory The file is located on my system here: /usr/pgsql-9.3/include/libpq-fe.h Libpq is part of the Postgres installation, but RPostgreSQL cannot find it: [root@server /]# yum list libpq* Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Installed Packages libpqxx.x86_64 1:4.0.1-1.rhel6 @pgdg93 libpqxx-debuginfo.x86_64 1:4.0.1-1.rhel6 @pgdg93 libpqxx-devel.x86_64 1:4.0.1-1.rhel6 @pgdg93 Is there any way to tell RPostgreSQL where to look (symbolic links?) or some other workaround? This should be simple, but I've wasted several hours on this already... r postgresql rpostgresql share|improve this question asked Oct 10 '14 at 15:32 Serban Tanasa 1,984629 I ended up looking into the RPostgreSQL configure file in the tarball, searched for the file name the script couldn't find and decided it was easiest to create an environmental variable: export PG_INCDIR=/usr/pgsql-9.3/include/ –Serban Tanasa Oct 10 '1
here for a quick overview of the site Help Center Detailed answers to http://stackoverflow.com/questions/6040583/cant-find-the-libpq-fe-h-header-when-trying-to-install-pg-gem any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack no such Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Can't find the 'libpq-fe.h header when trying to install pg gem up vote 465 down vote favorite 93 I am using rails 3.1 pre version. I like to no such file use PostgreSQL but the problem is installing the pg gem. It gives me the following error: demonchand@system-001:~/exercise/personal/pro$ gem install pg Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /home/demonchand/.rvm/rubies/ruby-1.9.2-p0/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 *** 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 --without-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=/home/demonchand/.rvm/rubies/ruby-1.9.2-p0/bin/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 Gem files will remain installed in /home/demonchand/.rvm/gems/ruby-1.9.2-p0/gems/pg-0.11.0 for inspection. Results logged to /home/demonchand/.rvm/gems/ruby-1.9.2-p0/gems/pg-0.11.0/ext/gem_make.out Can anyone tell me how do I solve this problem? ruby-on-rails ruby-on-rails-3 postgresql rails-postgresql pg share|improve thi