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'
Created attachment 280255 [details] emerge --info
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..
The first question obviously is 'eselect postgresql'.
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.