Configure Error Cannot Find Libpq-fe.h
here for a quick overview of the site Help Center Detailed answers to 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 Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only 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) 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 options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include
exim MySql scripts Utilities Web-ART WordPress Wallpapers Our Forums Donate to CryBit It's new!!! How to change PHP handler from SuPHP to FastCGI in a cPanel server Manage passwords using LastPass - Live safely How to install and configure csf on CentOS/RHEL servers? [Solved] Default email account's disk space usage not updating - cPanel How to unblock an IP address from WHMCS? 20+ common PHP compilation errors and fix - Unix Posted by: Arunlal Ashok http://stackoverflow.com/questions/13086073/rails-install-pg-cant-find-the-libpq-fe-h-header in Errors 39 Comments Compiling PHP is not an easy process by comparing with the installation of PHP using package managers like Yum or Apt-get. The main advantage of compiling PHP from its source code is the customization. That means you can customize your own PHP with custom modules. A lot of dependencies are required for https://crybit.com/20-common-php-compilation-errors-and-fix-unix/ the compilation of PHP from its source code. By using package manager the dependencies are automatically detected and install with the corresponding package. Here I am listing some common PHP compilation error and fix. This will helpful for compiling PHP on your server. Php compilation on server means the building and installation of PHP from its source. You may get a lot of error while compiling the PHP, here I am listing some common PHP compilation errors and their fixes. ERROR I : checking for BZip2 support… yes checking for BZip2 in default path… not found configure: error: Please reinstall the BZip2 distribution Solution: yum install bzip2-devel ERROR II : checking for cURL support… yes checking if we should use cURL for url streams… no checking for cURL in default path… not found configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/ Solution: yum install curl-devel ERROR III : checking for fabsf… yes checking for floorf…
Support Search GitHub This repository Watch 17 Star 58 Fork 20 https://github.com/rstats-db/RPostgres/issues/21 rstats-db/RPostgres Code Issues 43 Pull requests 10 Projects 0 Pulse http://gis.stackexchange.com/questions/1870/problems-in-installation-of-postgis Graphs New issue Fails to compile in CentOS7 (fails to find existing libpq-fe.h) #21 Open esaostring opened this Issue Mar 12, 2015 · 10 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 5 configure error participants esaostring commented Mar 12, 2015 I try to compile "rstats-db/RPostgres", but it fails to find libpq-fe.h: > devtools::install_github("rstats-db/RPostgres") Downloading github repo rstats-db/RPostgres@master Installing RPostgres '/usr/lib64/R/bin/R' --vanilla CMD INSTALL \ '/tmp/Rtmpyy794p/devtoolsc997c6bf0ba/rstats-db-RPostgres-1f09a16' \ --library='/home/esa/R/x86_64-redhat-linux-gnu-library/3.1' --install-tests * installing *source* package ‘RPostgres’ ... File libpq-fe.h not found. Please install libpq, e.g: postgresql-devel configure error cannot (rpm) or libpq-dev (deb) ERROR: configuration failed for package ‘RPostgres’ * removing ‘/home/esa/R/x86_64-redhat-linux-gnu-library/3.1/RPostgres’ Error: Command failed (1) In CentOS7, in order to get Postgresql 9.3 I use pgdg repo, and devel package includes are not in a standard place: [root@localhost bin]# rpm -qil postgresql93-devel | grep libpq-fe /usr/pgsql-9.3/include/libpq-fe.h And that is also, what is reported by pg_config: [root@localhost bin]# pg_config BINDIR = /usr/pgsql-9.3/bin DOCDIR = /usr/share/doc/pgsql HTMLDIR = /usr/share/doc/pgsql INCLUDEDIR = /usr/pgsql-9.3/include [...] FlorianEndel commented Mar 14, 2015 In CentOS 5 I had to set these environment variables prior to compiling: export LIBPQ_DIR=/usr/pgsql-9.3/ export LIBRARY_PATH=/usr/pgsql-9.3/lib esaostring commented Mar 16, 2015 Ok thanks. This seems to solve the compilation issue! krlmlr referenced this issue Oct 27, 2015 Closed Package install failure on Centos 6.6 #39 krlmlr commented Nov 10, 2015 Closing for now, please feel free to reopen. krlmlr closed this Nov 10, 2015 dckc c
Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to 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 Geographic Information Systems Questions Tags Users Badges Unanswered Ask Question _ Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Problems in installation of PostGIS up vote 4 down vote favorite I will be installing PostGIS for my project using PostgreSQl (OSM) in Ubuntu 9.04. I had all the requirements prior to the installation (PostgreSQL, Proj4, GEOS). When I unzip the PostGIS tar, then './configure' it, it says that the pg_config.h file is missing. I found out that I need to 'apt-get install libpq-dev' for me to able to have this file and past it as parameter to ./configure --with-pgconfig=PATH. When I executed this, this is what happens: ... checking for libiconv_open in -liconv... no checking for iconv_open in -lc... yes Using user-specified pg_config file: /usr/include/postgresql/pg_config.h ./configure: line 16394: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16404: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16405: /usr/include/postgresql/pg_config.h: Permission denied ./configure: line 16406: /usr/include/postgresql/pg_config.h: Permission denied checking PostgreSQL version... ./configure: line 16411: test: : integer expression expected ./configure: line 16416: test: : integer expression expected ./configure: line 16426: test: : integer e