用source code编译安装Xdebug

本文提供了一步步指导,教你如何从头开始安装Xdebug模块。包括解压文件、配置环境、编译安装等步骤,并提供了遇到常见错误时的解决办法。

1. Unpack the tarball: tar -xzf xdebug-2.2.x.tgz.  Note that you do
not need to unpack the tarball inside the PHP source code tree.
Xdebug is compiled separately, all by itself, as stated above.


2. cd xdebug-2.2.x


3. Run phpize: phpize
   (or /path/to/phpize if phpize is not in your path).


4. ./configure --enable-xdebug (or: ../configure --enable-xdebug
   --with-php-config=/path/to/php-config if php-config is not in your
   path)


5. Run: make


6. cp modules/xdebug.so /to/wherever/you/want/it


7. add the following line to php.ini:
   zend_extension="/wherever/you/put/it/xdebug.so"


8. Restart your webserver.


9. Write a PHP page that calls "phpinfo();" Load it in a browser and
   look for the info on the xdebug module.  If you see it, you have been
   successful!


phpize / php-config:

点击打开链接http://blog.youkuaiyun.com/shangxiaoxue/article/details/7549748


第3步的时候如果抛错:Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script

http://helpinlinux.com/tag/cannot-find-autoconf-please-check-your-autoconf-installation/


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值