Linux安装xdebug.(Debian,Ubuntu)
来源:互联网 发布:手机扫描扑克牌软件 编辑:程序博客网 时间:2024/06/09 23:13
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
- 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出了问题,手动复制一下一样的.
终端
- 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那里出现安装成功
在最开头有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
FROM:http://www.linuxidc.com/Linux/2011-09/43031.htm
0 0
- linux安装xdebug.(debian,ubuntu)
- linux安装xdebug.(debian,ubuntu)
- Linux安装xdebug.(Debian,Ubuntu)
- linux安装xdebug.(debian,ubuntu)
- Ubuntu下安装Xdebug
- ubuntu下xdebug安装
- linux php 安装xdebug
- linux安装xdebug
- linux 安装 使用xdebug
- linux下xdebug安装
- 在ubuntu下安装xdebug
- ubuntu安装配置xdebug方法
- ubuntu debian 安装fcitx
- Debian/Ubuntu 安装chrome
- Debian&Ubuntu安装apache2
- OpenVPN Server On Linux(Debian/Ubuntu) 安装配置小结
- 在Ubuntu/Debian Linux系统中安装Chrome浏览器
- linux系统下(debian和ubuntu)安装qq
- 手游研发—纹理优化相关
- JAVA版进程管理器
- Android 多屏幕适配
- win7设置共享文件夹
- 阿发福利科技科技科技了
- Linux安装xdebug.(Debian,Ubuntu)
- css视频笔记整理
- 项目管理的本质
- 计算机组成原理总结
- http://blog.sciencenet.cn/blog-630522-491356.html
- POJ 3281-Dining(网络流_最大流_ISAP算法+拆点)
- brew update gives Error: Failed to update tap: homebrew/dupes
- android 基础知识(一)
- Multiply Strings -- leetcode