Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375469 - dev-ruby/pg-0.9.0-r1: Can't find the 'libpq-fe.h header
Summary: dev-ruby/pg-0.9.0-r1: Can't find the 'libpq-fe.h header
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-17 18:26 UTC by Fabiano Francesconi
Modified: 2011-07-17 22:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo.txt,4.22 KB, text/plain)
2011-07-17 18:27 UTC, Fabiano Francesconi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabiano Francesconi 2011-07-17 18:26:05 UTC
When I try to emerge it, it gives me the following errors:

 * Running prepare phase for all ...
 * Running source copy phase for ruby18 ...
 * Running configure phase for ruby18 ...
/var/tmp/portage/dev-ruby/pg-0.9.0-r1/work/ruby18/pg-0.9.0/ext /var/tmp/portage/dev-ruby/pg-0.9.0-r1/work/ruby18/pg-0.9.0 /var/tmp/portage/dev-ruby/pg-0.9.0-r1/work
checking for pg_config... no
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=/usr/bin/ruby18
	--with-pg
	--without-pg
	--with-pg-config
	--without-pg-config
	--with-pg-dir
	--without-pg-dir
	--with-pg-include
	--without-pg-include=${pg-dir}/include
	--with-pg-lib
	--without-pg-lib=${pg-dir}/lib
	--enable-static-build
	--disable-static-build
 * ERROR: dev-ruby/pg-0.9.0-r1 failed (configure phase):
 *   extconf.rb failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 2728:  Called ruby-ng_src_configure
 *   environment, line 2420:  Called _ruby_each_implementation 'each_ruby_configure'
 *   environment, line  335:  Called _ruby_invoke_environment 'ruby18' 'each_ruby_configure'
 *   environment, line  375:  Called each_ruby_configure
 *   environment, line  800:  Called die
 * The specific snippet of code:
 *       ${RUBY} extconf.rb || die "extconf.rb failed";
 * 
 * If you need support, post the output of 'emerge --info =dev-ruby/pg-0.9.0-r1',
 * the complete build log and the output of 'emerge -pqv =dev-ruby/pg-0.9.0-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/pg-0.9.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/pg-0.9.0-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-ruby/pg-0.9.0-r1/work/ruby18/pg-0.9.0'
Comment 1 Fabiano Francesconi 2011-07-17 18:27:10 UTC
Created attachment 280255 [details]
emerge --info
Comment 2 Fabiano Francesconi 2011-07-17 18:29:00 UTC
Postgresql installed: dev-db/postgresql-base-9.0.4-r2 and dev-db/postgresql-server-9.0.4-r1

I don't understand why base and server have different revisions though..
Comment 3 Rafał Mużyło 2011-07-17 19:15:21 UTC
The first question obviously is 'eselect postgresql'.
Comment 4 Fabiano Francesconi 2011-07-17 22:56:28 UTC
I spot an error regarding an already existing path in /usr/share/postgresql.
I removed that directory and ran eselect postgresql update.

After that I could successfully emerge pg.