步骤
这里以
fileinfo
为例 lnmp1.4
- 登录
pecl
搜索需要的fileinfo
wget 'http://pecl.php.net/get/Fileinfo-1.0.4.tgz'
tar -zxvf Fileinfo-1.0.4.tgz
cd Fileinfo-1.0.4
/usr/local/php/bin/phpize
#phpize./config --with-php-config=/usr/local/php/bin/php-config
make && make install
遇到错误
reinstall the libmagic ...
yum install -y file-devel