zwi*_*ion 33 software-installation php7
我尝试使用 PHP7.0-fmp 在我的 Ubuntu 16.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.
Run Code Online (Sandbox Code Playgroud)
为了安装 phpize,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
Run Code Online (Sandbox Code Playgroud)
这表示所有 php7.0-dev 包都已安装,但是当我运行时,phpize我收到以下消息:
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.
Run Code Online (Sandbox Code Playgroud)
我已经在里面了/usr/bin/。在这种情况下如何运行 phpize?
kar*_*rel 57
PHP7 的 phpize 由 Ubuntu 16.04 中的 php7.0-dev 包提供。要安装它,请打开终端并输入:
sudo apt install php7.0-dev
Run Code Online (Sandbox Code Playgroud)
phpize7.0 将安装到 /usr/bin/phpize7.0
要运行它,请键入:
phpize7.0
Run Code Online (Sandbox Code Playgroud)
示例:获取 phpize7.0 版本:
phpize7.0 -v
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 17.10 中 php7.0-dev 已更新为 php7.1-dev 并且 phpize7.1 将安装到/usr/bin/phpize7.1. 在 Ubuntu 18.04 中,php7.0-dev 已更新为 php7.2-dev。在 Ubuntu 20.04+ 中,php7.0-dev 已更新为 php7.4-dev。php7.4-dev 是 Ubuntu 21.04 中的当前包,而 php 8 包尚未在 Ubuntu 21.04 默认存储库中发布。
phpize 命令旨在在扩展源目录的顶层运行。此源目录应包含名为config.m4的文件。PHP 扩展的config.m4文件告诉 UNIX 构建系统你的扩展支持哪些配置选项,你需要哪些外部库和包含,以及哪些源文件将被编译为它的一部分。
Jas*_*net 19
要phpize在Ubuntu 16.04和PHP7上运行命令,请安装此软件包:
apt-get install php-dev
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
76258 次 |
| 最近记录: |