普通网友 2010-06-24 02:05
浏览 293
已采纳

如何安装和运行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

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

But all of them are already installed.

Locate config.m4 didn't return anything.

Any pointers here how I can get phpize and thus, ffmpeg up and running?

  • 写回答

16条回答 默认 最新

  • douzi0609 2012-01-23 20:57
    关注

    For recent versions of Debian/Ubuntu (Debian 9+ or Ubuntu 16.04+) install the php-dev dependency package, which will automatically install the correct version of php{x}-dev for your distribution:

    sudo apt install php-dev
    

    Older versions of Debian/Ubuntu:

    For PHP 5, it's in the php5-dev package.

    sudo apt-get install php5-dev
    

    For PHP 7.x (from rahilwazir comment):

    sudo apt-get install php7.x-dev
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(15条)
编辑
预览

报告相同问题?