1: 首先还是下载猛击这里下载
xdebug-2.1.2.tgz我下载到downloads目录. 在/home/yourName/Downloads/这里.
2:解压编译cd 进去Downloads目录后 依次运行下面的命令
- tar -xvzf xdebug-2.1.2.tgz
- cd xdebug-2.1.2
- phpize
(如果phpize没有这个command,需要安装一次phpize,phpize可以让php支持扩展模块.
- sudo apt-get install php5-dev
这个过程有几分钟.主要是网速慢 - -)- ./configure
- make
- make install
会有这个界面
- See any operating system documentation about shared libraries for
- more information, such as the ld(1) and ld.so(8) manual pages.
- ----------------------------------------------------------------------
- Installing shared extensions: /usr/lib/php5/20090626+lfs/
-
-
- +----------------------------------------------------------------------+
- | |
- | INSTALLATION INSTRUCTIONS |
- | ========================= |
- | |
- | See http://xdebug.org/install.php#configure-php for instructions |
- | on how to enable Xdebug for PHP. |
- | |
- | Documentation is available online as well: |
- | - A list of all settings: http://xdebug.org/docs-settings.php |
- | - A list of all functions: http://xdebug.org/docs-functions.php |
- | - Profiling instructions: http://xdebug.org/docs-profiling2.php |
- | - Remote debugging: http://xdebug.org/docs-debugger.php |
- | |
- | |
- | NOTE: Please disregard the message |
- | You should add "extension=xdebug.so" to php.ini |
- | that is emitted by the PECL installer. This does not work for |
- | Xdebug. |
- | |
- +----------------------------------------------------------------------+
如果make install出现失败,检查是否有权限.切换到root权限再执行
- su
- ********
- cp modules/xdebug.so /usr/lib/php5/20090626+lfs
??里也是一样,如果cp出了问题,手动复制一下一样的.
3:编辑php.ini终端
- gvim /etc/php5/apache5/php.ini
添加
- zend_extension = /usr/lib/php5/20090626+lfs/xdebug.so
如果不能修改php.ini,切换下账户用root来修改.重启apache
- sudo /etc/init.d/apache2 restart
4:查看phpinfo
在最开头有zend那里出现
- This program makes use of the Zend Scripting Language Engine:
- Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
- with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans
安装成功
Ubuntu 安装Oracle Java 7 (JDK)Linux下安装Memcache相关资讯 Linux安装 xdebug
- Linux基础教程:Linux的安装与简介 (今 21:00)
- 如何在MacBook Pro Retina上安装 (06/23/2014 08:17:33)
- Linux源码程序安装后的工作 (03/02/2014 10:57:44)
| - Mac OS X下PhpStorm+MAMP PRO+ (06月15日)
- Linux自动安装实现 (03/08/2014 07:12:01)
- 在MAC下使用ISO制作Linux的安装USB (04/17/2013 11:36:16)
|
本文评论 查看全部评论 (0)