how to install and run phpize

2019-01-07 04:54发布

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 didnt return anything.

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

15条回答
该账号已被封号
2楼-- · 2019-01-07 05:44

For ubuntu 14.04LTS with php 7, issue:

sudo apt-get install php-dev

Then install:

pecl install memcache
查看更多
冷血范
3楼-- · 2019-01-07 05:45

Of course in PHP7.2

sudo apt-get install php7.2-dev
查看更多
Fickle 薄情
4楼-- · 2019-01-07 05:51

For instance, if you wanted to use the "phpize" command for PHP 5.6, you would use the full path: Code:

/opt/cpanel/ea-php56/root/usr/bin/phpize
查看更多
登录 后发表回答