Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 349233 - dev-php5/pecl-apc-3.1.4 Cannot find php-config
Summary: dev-php5/pecl-apc-3.1.4 Cannot find php-config
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2010-12-20 22:39 UTC by Alexey
Modified: 2010-12-22 22:19 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2010-12-20 22:39:19 UTC
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:
 *, 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'
 *, 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
Comment 1 Alexey 2010-12-20 22:49:08 UTC
from php-ext-source-r1.eclass:
my_conf="--prefix=${PHPPREFIX} --with-php-config=${PHPCONFIG} ${my_conf}"

from php-ext-source-r2.eclass:

new portage is bad?
Comment 2 Alexey 2010-12-20 23:08:06 UTC
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.
Comment 3 Rafał Mużyło 2010-12-21 02:05:23 UTC
'eselect php cli <value>', most likely.
Comment 4 Rafał Mużyło 2010-12-21 04:23:32 UTC
(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.
Comment 5 Patrick ALLAERT 2010-12-22 15:48:24 UTC
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 *
Comment 6 Alexey 2010-12-22 22:19:25 UTC
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.