如何让 xdebug 在 debian squeeze 中处理手动编译的 php 5.2 二进制文件
我正在探索使用 Debian squeeze(6) 的新服务器设置。从以前的 FreeBSD 角度来看,我不得不说我非常喜欢这个操作系统。但问题是默认的 PHP 版本是 5.3。解决这个问题并不难,因为这是一个普遍问题。我使用了以下指南
http://blog.davejamesmiller.com/2011/03/how-to-install-php-5-2-fastcgi-on-debian-6-0-squeeze
并设法编译了一个工作5.2.17 二进制。这个二进制文件几乎捆绑了除 Xdebug 之外的所有功能,这对我的开发装备至关重要。
现在我尝试从源代码手动编译 Xdebug,但它不适用于我的 5.2 二进制文件。即使暂时替换系统 phpize 也会产生相同的结果。
这个问题有解决办法吗?就像ie:在php编译期间捆绑xdebug?
如果我的英语不够好,我深表歉意。欢迎任何见解!
[更新] 我使用的是正确版本的 phpize(适用于 PHP 5.2 的版本)。但我发现我还必须另外指定
./configure --with-php-config=/full/path/to/php/bin/php-config
标志。现在运行完美。
问题已解决。
I am exploring a new server setup using Debian squeeze(6). From a former FreeBSD perspective I have to say I like the OS very much. The problem however is that the default PHP version is 5.3. Fixing this was not hard, since this is a general issue. I used the following guide
http://blog.davejamesmiller.com/2011/03/how-to-install-php-5-2-fastcgi-on-debian-6-0-squeeze
and managed to compile a working 5.2.17 binary. This binary has almost all functionality bundled except for Xdebug wich is vital for my development rig.
Now I have tried to manually compile Xdebug from source but it doesn't work for my 5.2 binary. Even temporarily replacing the systems phpize yields the same result.
Is there a solution for this problem? Like i.e: bundling xdebug during the php compiling?
My sincere appologies if my English is lacking. Any insights are welcome!
[UPDATE]
I was using the correct version of phpize (the one for PHP 5.2). But I found out that I had to additionally specify the
./configure --with-php-config=/full/path/to/php/bin/php-config
flag as well. It is operating perfectly now.
The issue is resolved.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用 php 5.2 安装附带的 phpize 命令。另请确保在运行
configure
时指定 php-config 路径。You need to use the
phpize
command that comes with your php 5.2 installation. Also make sure you specify the php-config path when runningconfigure
.