On the homepage, we can go to the renewal method.
1. If your xampp does not have a devel package, the compilation will fail. This is because the include php tutorial. h fails during compilation. Therefore, make sure that the devel packages of xampp is downloaded and installed. : Xampp-linux-devel, and decompress it to the installation directory tar-xvzf file-c/opt. When downloading the devel package of xampp, be sure to select the devel package that is consistent with your current version. Because the php extension compilation will append the version information and check it at startup, if they are inconsistent, they cannot be used even if they can be compiled successfully.
After that, you will find that there is an extra include directory under the lampp Directory, which contains some necessary header files.
2. Download the source code of xhprof. Decompress the package and enter the xhprof/extension/directory.
3. Execute the following commands in sequence:
/Opt/lampp/bin/phpize
./Configure -- with-php-config =/opt/lampp/bin/php-config -- prefix =/opt/lampp/
Make
Make test
Make install
The installation is complete. Then go to the/opt/lampp/lib/php/extensions/no-debug-on-zts-20060613/to view, you will see that there is xhprof. so.
4. Add extension = "xhprof. so" to/opt/lampp/etc/php. ini to restart lampp.
5. After the server is restarted, you can see the xhprof information in phpinfo.
Pstutorial: When I use lampp 1.7, the compiled xhprof. so cannot be loaded properly enough, prompting that the version number is incorrect. It may be