安装PHP_CodeSniffer

#php编译参数
./configure \
--with-libdir=/lib64 \
--enable-cli \
--disable-cgi \
--disable-fpm \
--enable-phar \
--enable-xml \
--enable-libxml \
--with-pear  \
--disable-all

pear install PHP_CodeSniffer
#提示
#No releases available for package "pear.php.net/PHP_CodeSniffer"
#install failed
#pear需要ssl模块的支持
cd PHP源码目录/ext/openssl
mv ./config0.m4 /config.m4
phpize 
./configure --with-php-config=$(which php-config)
make && make install 
#编辑PHP配置文件,打开openssl扩展
#增加tokenizer、xmlwriter、simplexml

你可能感兴趣的:(安装PHP_CodeSniffer)