我尝试用PHP7.0-fmp在我的Ubuntu16.04中安装xdebug。
在定制的工具里面写着:
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: 20151012
Zend Extension Api No: 320151012
If it does not, you are using the wrong phpize.
Please follow this FAQ entry and skip the next step.FAQ只引用php5-dev来安装phpize。
然后,在如何安装和运行位相之后,我发现php7.0-dev也应该安装phpize。
当我尝试运行sudo apt-get install php7.0-dev时,我会得到这样的消息:
php7.0-dev is already the newest version (7.0.8-0ubuntu0.16.04.2).
The following package was automatically installed and is no longer required:
linux-image-extra-4.4.0-21-generic这意味着所有php7.0-dev包都已经安装好了,但是当我运行phpize时,我会得到以下消息:
root@ig:/usr/bin# phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module我已经在/usr/bin/里面了。如何在这种情况下运行phpize?
发布于 2016-09-14 09:18:04
PHP7的phpize由Ubuntu16.04中的php7.0-dev包提供。要安装它,请打开终端并键入:
sudo apt install php7.0-dev /usr/bin/phpize7.0将安装phpie7.0
要运行它,输入:
phpize7.0示例:获取ph比萨7.0的版本:
phpize7.0 -v在Ubuntu17.10 php7.0-dev已经更新为php7.1-dev,phpie7.1将安装到/usr/bin/phpize7.1中。在Ubuntu中,php7.0-dev已经更新为php7.2-dev。在Ubuntu中,php7.0-dev已经更新为php7.4-dev。php7.4-dev是Ubuntu21.04中的当前包,而php 8包还没有在Ubuntu21.04默认存储库中发布,但是php8.0包已经在21.10和以后的默认Ubuntu存储库中发布。
phpize命令要在扩展源目录的顶层运行。这个源目录应该包含一个名为config.m4的文件。PHP扩展的config.m4文件告诉UNIX系统您的扩展支持哪些配置选项、需要哪些外部库和包含哪些外部库,以及要编译哪些源文件作为其中的一部分。
https://askubuntu.com/questions/819797
复制相似问题