How to install Xhprof if php5-common version doesn't suit it?


I wanted to do code profiling. I chose Xhprof because worked with it before, but the installation problem arose.

aptitude install php5-xhprof

The following NEW packages will be installed:
0 packages upgraded, 1 newly installed, 0 to remove and 494 not upgraded.
Need to get 13.6 kB of archives. After unpacking 74.8 kB will be used.
The following packages have unmet dependencies:
 php5-xhprof : Depends: php5-common (= 5.5.25-1~dotdeb+7.1) but 5.5.24-1~dotdeb+wheezy.1 is installed and it is kept back.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     php5-xhprof [Not Installed]

Dpkg -l | grep php output if anyone needs it.

rc  php5-cgi                             5.4.34-0+deb7u1               amd64        server-side, HTML-embedded scripting language (CGI binary)
ii  php5-cli                             5.5.24-1~dotdeb+wheezy.1      amd64        command-line interpreter for the php5 scripting language
ii  php5-common                          5.5.24-1~dotdeb+wheezy.1      amd64        Common files for packages built from the php5 source
ii  php5-curl                            5.5.24-1~dotdeb+wheezy.1      amd64        CURL module for php5
ii  php5-fpm                             5.5.24-1~dotdeb+wheezy.1      amd64        server-side, HTML-embedded scripting language (FPM-CGI binary)
ii  php5-gd                              5.5.24-1~dotdeb+wheezy.1      amd64        GD module for php5
ii  php5-imagick                         5.5.24-1~dotdeb+wheezy.1      amd64        imagick module for php5
ii  php5-memcache                        5.5.24-1~dotdeb+wheezy.1      amd64        memcache module for php5
ii  php5-mysqlnd                         5.5.24-1~dotdeb+wheezy.1      amd64        MySQL module for php5 (Native Driver)
ii  php5-readline                        5.5.24-1~dotdeb+wheezy.1      amd64        Readline module for php5

He doesn't like php5-common with his version, when he tries to update php5-common, he wants to fucking update / remove everything, somehow bold for the package that installs documentation and examples for php5 . I wanted to build xhprof from source, for this he needs phpize, and for him php5-dev, and he wants to remove for a hundred packages. Maybe somewhere you can dig up xhprof which will rise to 5.5.24? The main problem is that the server is fighting and this makes it strive for any possible fall. I would be glad to have ideas and advice.


judging by the names of the packages ("dotdeb" is encountered) you have a repository from connected.

php.*5.5.24.* far as I can see, the php.*5.5.24.* packages have already gone into the archive , and when trying to install php5-dev from the main repository, it is suggested to update all these packages to the version 5.5.25 currently present in this repository.

unfortunately, their archive does not contain the php5-xhprof package you php5-xhprof , so you have to compile it yourself by installing php5-dev from the dotdeb archive.

the easiest is probably to download the file of the desired architecture and install the package manually:

$ sudo dpkg -i php5-dev_5.5.24-1~dotdeb+wheezy.1_*.deb

here Guillaume Plessis explains fileinfo as an example how to build a package containing a pecl extension. try applying the instructions for the xhprof you need .

Scroll to Top