sudo aptitude install php5-dev libtidy-dev
#you may have to install other libs, like gcc, build-essential, etc.
#see the guides on how to compile PHP, for instance
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/ext/tidy/
cd tidy
phpize
./configure
make
sudo make install
sudo aptitude install php5-dev libtidy-dev
#you may have to install other libs, like gcc, build-essential, etc.
#see the guides on how to compile PHP, for instance
svn co http://svn.php.net/repository/php/php-src/branches/PHP_5_3/ext/tidy/
cd tidy
phpize
./configure
make
sudo make install
发布评论
评论(1)
基本上,我只是替换了 http://support.office-shadow.com /installer/tidy2.0.tar.gz 以及存储库位置。如果您使用的是 PHP 5.2,请将 PHP_5_3 替换为 PHP_5_2。
Basically, I just replaced http://support.office-shadow.com/installer/tidy2.0.tar.gz with the repository location. If you're using PHP 5.2, replace PHP_5_3 with PHP_5_2.