T
T
tuxx2014-05-07 18:49:44
PHP
tuxx, 2014-05-07 18:49:44

How to solve problem with phpize when installing XHprof?

I decided to install XHProf on the server with Debian 6, but ran into a problem ( screenshot ). Used this article. But an error pops up from the screen. I found a solution in the form of a more detailed article , but there is an error:


Cannot find php-config. Please use --with-php-config=PATH

Next, I tried to use the tips from here to find config.m4. There were no errors, but config.m4 was not found when installing XHProf either.
Basically, I don't know what to do anymore.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2014-05-08
@merryjane

Didn't understand you found the phpize command? If not, the php5-dev package is most likely not installed, you need to install it.
Next, download the archive:
wget pecl.php.net/get/xhprof-0.9.4.tgz
Unpack and go into the extensions:
tar xzvf xhprof-0.9.4.tgz
cd xhprof-0.9.4/extension/
Prepare the environment, configure and build :
phpize
./configure
make
checkinstall

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question