我很新的Linux服务器pipe理,我有一个Linux服务器,具有以下configuration:
Distributor ID: Debian Description: Debian GNU/Linux 6.0.6 (squeeze) Release: 6.0.6 Codename: squeeze PHP version: 5.4.12-1~dotdeb.1
我正在尝试安装xdebug,并在xdebug网站()上使用了该向导。
Output of xdebug Xdebug installed: no Server API: Apache 2.0 Handler Windows: no Zend Server: no PHP Version: 5.4.12-1 Zend API nr: 220100525 PHP API nr: 20100525 Debug Build: no Thread Safe Build: no Configuration File Path: /etc/php5/apache2 Configuration File: /etc/php5/apache2/php.ini Extensions directory: /usr/lib/php5/20100525 Instructions Download xdebug-2.2.1.tgz Unpack the downloaded file with tar -xvzf xdebug-2.2.1.tgz Run: cd xdebug-2.2.1 Run: phpize (See the FAQ if you don't have phpize. As part of its output it should show: Configuring for: ... Zend Module Api No: 20100525 Zend Extension Api No: 220100525 If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step. Run: ./configure Run: make Run: cp modules/xdebug.so /usr/lib/php5/20100525 Edit /etc/php5/apache2/php.ini and add the line zend_extension = /usr/lib/php5/20100525/xdebug.so Restart the webserver
我遵循这些步骤,然后运行make test我得到这个输出:
Build complete. Don't forget to run 'make test'. Xdebug requires Zend Engine API version 220090626. The Zend Engine API version 220100525 which is installed, is newer. Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug. Xdebug requires Zend Engine API version 220090626. The Zend Engine API version 220100525 which is installed, is newer. Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug. ===================================================================== PHP : /usr/bin/php PHP_SAPI : cli PHP_VERSION : 5.4.12-1~dotdeb.1 ZEND_VERSION: 2.4.0 PHP_OS : Linux - Linux debian-web-001 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64 INI actual : /usr/lib/xdebug-2.2.1/tmp-php.ini More .INIs : CWD : /usr/lib/xdebug-2.2.1 Extra dirs : VALGRIND : Not used ===================================================================== TIME START 2013-03-10 16:16:37 ===================================================================== No tests were run.
正如你所看到的,我仍然得到同样的错误..谁能告诉我我做错了什么或在哪里看?
提前致谢!
听起来,从评论,就像你有这个导致你不使用现有的php5-xdebug包的具体问题是,你需要PHP 5.4。 在这一点上,我强烈build议你为自己节省很多的痛苦,只需将系统升级到Debian wheezy(正在testing)即可。 我们距离发行版还有两三个月的时间,发行版本大部分都是冻结的,而且和稳定的发行版本差不多。 在尖端方面有点吓人,但是Debian的喘息已经有了稳定的安全支持。
wheezy会给你PHP 5.4.4和Xdebug 2.2.1。
升级到新版本的PHP并得到它的工作后,我意识到,我正在为源代码工作的公司没有正常工作,这个版本,所以返回到原来的版本,然后有错误的版本在PHPconfiguration – 版本。 新版本存储在/etc/php/5.6(5.6.26); 旧版本存放在/etc/php5(5.5.9Ubuntu-4.19)。另外phpize返回错误版本,在phpize的/ usr / bin版本中find另外一个; phpize5。
inform-laptop xdebug-2.4.1 # phpize Configuring for: PHP Api Version: xxxxxxxx Zend Module Api No: 20131226 Zend Extension Api No: 220131226 inform-laptop xdebug-2.4.1 # phpize5 Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212
然后使用phpize5按照网站上的说明https://xdebug.org/wizard.php所以得到xdebug work.There还有一个php-config5在/ user /斌
inform-laptop bin # php-config5 --version 5.5.9-1ubuntu4.19