configure: error: Cannot find php-config. Please use --with-php-config=PATH !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-php5/pecl-apc-3.1.4/work/APC-3.1.4/config.log * ERROR: dev-php5/pecl-apc-3.1.4 failed: * econf failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 4296: Called php-ext-pecl-r1_src_compile * environment, line 3510: Called php-ext-source-r1_src_compile * environment, line 3546: Called econf '--prefix=/usr/lib/php5' '--with-php-config=/usr/lib/php5/bin/php-config' '--enable-apc' '--disable-apc-mmap' * ebuild.sh, line 552: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of 'emerge --info =dev-php5/pecl-apc-3.1.4', * the complete build log and the output of 'emerge -pqv =dev-php5/pecl-apc-3.1.4'. * The complete build log is located at '/var/tmp/portage/dev-php5/pecl-apc-3.1.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-php5/pecl-apc-3.1.4/temp/environment'. * S: '/var/tmp/portage/dev-php5/pecl-apc-3.1.4/work/APC-3.1.4' seems like --with-php-config should be =/usr/bin/php-config Reproducible: Always
from php-ext-source-r1.eclass: my_conf="--prefix=${PHPPREFIX} --with-php-config=${PHPCONFIG} ${my_conf}" from php-ext-source-r2.eclass: PHPCONFIG="/usr/${libdir}/${1}/bin/php-config" new portage is bad?
Plus it install ext/apc.ini in wrong dir: in /etc/php/apache2-php5 instead of /etc/php/apache2-php5.3. Wrong dir for cgi & cli too.
'eselect php cli <value>', most likely.
(In reply to comment #3) > 'eselect php cli <value>', most likely. > Oh, and if above doesn't work, then it *is* a matter of slotted php being stabled too early. Most pecl ebuilds have versions compatible with slotted php (they use r2 version of the eclass), but that mostly in unstable tree.
I have the same problem using stable dev-lang/php-5.3.4 and dev-php5/pecl-apc-3.1.4. Why is this "RESOLVED INVALID" while valid using only stable packages? $ sudo eselect php list cli [1] php5.3 *
Who have problems with pecl-apc-3.1.4 should try unstable pecl-apc-3.1.4-r1. It compiles OK and have "php5-3" USE-flag and installs apc.ini in properly dirs.