当前位置:Gxlcms > PHP教程 > phptidy扩展的安装

phptidy扩展的安装

时间:2021-07-01 10:21:17 帮助过:22人阅读

1、在php源码的ext目录下有tidy的源码,进到这个目录

2、编译

/usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config

如果报错:

configure: error: Cannot find libtidy

那么:

yum install libtidy-devel

如果报错

re2c not found

那么

wget http://downloads.sourceforge.net/project/re2c/re2c/0.13.7.5/re2c-0.13.7.5.tar.gztar xzf re2c-0.13.7.5.tar.gzcd re2c-0.13.7.5./configuremake && make install

通过后

make && make install

人气教程排行