问题描述
我已经意识到安装ffmpeg作为我的php设置的扩展。所以在我可以安装之前,我需要 phpize
。我安装php5-dev由 sudo apt-get install php5-dev
但是现在当我运行phpize我得到以下错误:
I have been meaning to install ffmpeg as an extension to my php setup. So before I can install it, I need to phpize
it. I installed php5-dev by sudo apt-get install php5-dev
But now when I run phpize I get the following error :
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
The location of my php.ini is /usr/local/zend/etc/php.ini
从另一个在线资源我尝试这个
From another online resource i tried this
sudo apt-get install autoconf automake libtool m4
但是都已经安装了。
找到config.m4没有返回任何东西。
Locate config.m4 didnt return anything.
这里的任何指针都可以获得phpize,从而ffmpeg开始运行?
Any pointers here how I can get phpize and thus, ffmpeg up and running ?
推荐答案
在Debian / Ubuntu上,它在php5-dev软件包中。
On Debian/Ubuntu, it's in the php5-dev package.
sudo apt-get install php5-dev
对于PHP7(来自评论):
For PHP7 (from rahilwazir comment):
sudo apt-get install php7.0-dev
这篇关于如何安装和运行phpize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!