Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625412 - dev-lang/php-7.1.7 Cannot find libpq.so. Please specify correct PostgreSQL installation path
Summary: dev-lang/php-7.1.7 Cannot find libpq.so. Please specify correct PostgreSQL in...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-17 14:02 UTC by Sam Stone
Modified: 2017-07-17 16:06 UTC (History)
1 user (show)

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


Attachments
build log dev-lang/php-7.1.7 (dev-lang:php-7.1.7:20170717-051444.log,26.98 KB, text/x-log)
2017-07-17 14:02 UTC, Sam Stone
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Stone 2017-07-17 14:02:53 UTC
Created attachment 485254 [details]
build log dev-lang/php-7.1.7

I have postgresql-10_beta2 installed.

gallatin@hans ~ $ sudo emerge --info '=dev-lang/php-7.1.7::gentoo'        
Portage 2.3.6 (python 3.6.1-final-0, default/linux/amd64/13.0/desktop, gcc-6.3.0, glibc-2.24-r3, 4.12.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-5500U_CPU_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:     8092132 total,   1313912 free
KiB Swap:   20479996 total,  20478708 free
Timestamp of repository gentoo: Mon, 17 Jul 2017 03:30:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

neomutt_gentoo
    location: /usr/local/portage/mail-client
    sync-type: git
    sync-uri: https://github.com/neomutt/gentoo-neomutt
    masters: gentoo

sk-overlay
    location: /usr/local/overlay/sk-overlay
    sync-type: git
    sync-uri: https://c.darenet.org/scriptkitties/overlay.git
    masters: gentoo

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

raiagent
    location: /var/lib/layman/raiagent
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Vivaldi"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=broadwell -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ rsync://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acc acl acpi alsa amd64 apng berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups curl cxx dbus dri dri3 dts dvb dvd dvdr egl emacs emboss eml encode eudev examples exif fam ffmpeg firebird firefox flac fontconfig fortran gdbm gif git glamor gles gnome-keyring gpm gtk guile highlight iconv icq icu idn introspection ipv6 java javascript jemalloc jpeg jpeg2k kerberos latex lcms ldap libinput libnotify mad mmap mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg openal opengl openmp pam pango pcmcia pcre pdf perl png policykit posix postgres postscript ppds pulseaudio python qt3support qt5 readline ruby sasl scanner sdl seccomp secomp session speex spell sqlite ssh ssl startup-notification svc svg syslog systemtap taglib tcpd threads tiff truetype udev udisks unicode upower usb vaapi valgrind vim-syntax vorbis wayland widgets wifi wxwidgets x264 xattr xcb xft xinerama xml xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmxext mmx sse sse2 sse3 ssse3 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-1" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" RUBY_TARGETS="ruby21 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="clock power trash multiload-nandhp" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4 3.5 3.6"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-lang/php-7.1.7::gentoo was built with the following:
USE="acl berkdb bzip2 cli crypt ctype curl enchant exif fileinfo filter firebird fpm gd gdbm hash iconv intl ipv6 json kerberos ldap ldap-sasl nls opcache pdo phar phpdbg posix readline session simplexml sockets spell sqlite ssl threads tidy tokenizer truetype unicode webp xml xmlreader xmlwriter xslt zip zlib -apache2 -bcmath -calendar -cdb -cgi -cjk -coverage -debug -embed -flatfile -ftp -gmp -imap -inifile -iodbc -libedit -libressl -mhash -mssql -mysql -mysqli -oci8-instant-client -odbc -pcntl -postgres -qdbm -recode (-selinux) -sharedmem -snmp -soap -systemd -sysvipc -test -wddx -xmlrpc -xpm" ABI_X86="(64)"

gallatin@hans ~ $ emerge -pqv '=dev-lang/php-7.1.7::gentoo'
[ebuild   R   ] dev-lang/php-7.1.7  USE="acl berkdb bzip2 cli crypt ctype curl enchant exif fileinfo filter firebird fpm gd gdbm hash iconv intl ipv6 json kerberos ldap ldap-sasl nls opcache pdo phar phpdbg posix postgres* readline session simplexml sockets spell sqlite ssl threads tidy tokenizer truetype unicode webp xml xmlreader xmlwriter xslt zip zlib -apache2 -bcmath -calendar -cdb -cgi -cjk -coverage -debug -embed -flatfile -ftp -gmp -imap -inifile -iodbc -libedit -libressl -mhash -mssql -mysql -mysqli -oci8-instant-client -odbc -pcntl -qdbm -recode (-selinux) -sharedmem -snmp -soap -systemd -sysvipc {-test} -wddx -xmlrpc -xpm"
Comment 1 Sam Stone 2017-07-17 14:03:47 UTC
gallatin@hans ~ $ emerge -pqv '=dev-db/postgresql-10_beta2::gentoo'
[ebuild   R   ] dev-db/postgresql-10_beta2  USE="doc kerberos ldap nls pam perl python readline server ssl tcl threads uuid xml zlib -libressl -pg_legacytimestamp (-selinux) -static-libs -systemd" LINGUAS="en -af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_4 -python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"
Comment 2 Brian Evans (RETIRED) gentoo-dev 2017-07-17 14:37:27 UTC
Works for me.  Be sure that 'eselect postgresql' points to the 10 slot
Comment 3 Sam Stone 2017-07-17 15:05:11 UTC
gallatin@hans ~ $ sudo eselect postgresql list
Available PostgreSQL Slots
  9.6                       9.6.3
  10                        10beta2


gallatin@hans ~ $ sudo eselect postgresql set 10beta2
!!! Error: Not a valid slot.
exiting


gallatin@hans ~ $ sudo eselect postgresql set 10     
Setting 10 as the default...ln: failed to create symbolic link '/usr/include/postgresql/postgresql-10': File exists
!!! Error: Unable to create link! postgresql-10 -> /usr/include/postgresql
exiting
Comment 4 Brian Evans (RETIRED) gentoo-dev 2017-07-17 15:08:50 UTC
(In reply to Sam Stone from comment #3)
> gallatin@hans ~ $ sudo eselect postgresql list
> Available PostgreSQL Slots
>   9.6                       9.6.3
>   10                        10beta2
> 
> 
> gallatin@hans ~ $ sudo eselect postgresql set 10beta2
> !!! Error: Not a valid slot.
> exiting
> 
> 
> gallatin@hans ~ $ sudo eselect postgresql set 10     
> Setting 10 as the default...ln: failed to create symbolic link
> '/usr/include/postgresql/postgresql-10': File exists
> !!! Error: Unable to create link! postgresql-10 -> /usr/include/postgresql
> exiting

This is not a php issue, but eselect postgresql is finding something it cannot recognize.

Try running 'eselect postgresql update' as root
Comment 5 Sam Stone 2017-07-17 16:06:31 UTC
@Brain Evans
Thanks for your help. Manually rename all relevant links in /usr/include to _linkname then running eselect postgresql update solved problem php and other installation issues I was encountering after postgresql update.