加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

如何安装和运行phpize

发布时间:2020-12-13 21:27:45 所属栏目:PHP教程 来源:网络整理
导读:我的意思是安装ffmpeg作为我的 PHP设置的扩展.所以在我安装它之前,我需要php it它.我通过sudo apt-get install php5-dev安装了php5-dev.但是现在当我运行phpize时,我收到以下错误: phpizeCannot find config.m4. Make sure that you run '/usr/bin/phpize'
我的意思是安装ffmpeg作为我的 PHP设置的扩展.所以在我安装它之前,我需要php it它.我通过sudo apt-get install php5-dev安装了php5-dev.但是现在当我运行phpize时,我收到以下错误:

phpize
Cannot find config.m4. 
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module

我的php.ini的位置是/usr/local/zend/etc/php.ini

从另一个在线资源我试过这个

sudo apt-get install autoconf automake libtool m4

但是所有这些都已经安装好了.

找到config.m4没有返回任何内容.

这里有任何指针我如何获得phpize因此,ffmpeg启动并运行?

解决方法

在Debian / Ubuntu上,它位于php5-dev包中.

sudo apt-get install php5-dev

对于PHP 7.x(来自rahilwazir评论):

sudo apt-get install php7.x-dev

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读