php7安装tidy扩展
当前使用Centos7.x系统,php使用7.1版本 tidy扩展包含在php源码包中 1、安装所需依赖,如果在编译时还提示缺少其他依赖,请自行安装 yum install autoconf gcc gcc-c++ libtidy libtidy-devel 2、下载php7.1源码包 wget https://www.php.net/distributions/php-7.1.30.tar.gztar xf php-7.1.30.tar.gzcd php-7.1.30/ext/tidy/usr/local/php/bin/phpize 根据自己phpize的位置来运行即可(不知道phpize在哪的直接find / -name phpize查找),运行完提示下面信息,然后编译 Configuring for:PHP Api Version: 20160303Zend Module Api No: 20160303Zend Extension Api No: 320160303 3、编译扩展模块 ./configure --with-php-config=/usr/local/php/b...