Php 확장모듈 추가하는 방법좀 가르쳐주세요ㅠㅠ

php 5.2 버전 쓰고있는데요

tidy라는 모듈 추가방법좀 가르쳐주세요 ㅠㅠ 용자님

os는 sulinux 쓰고있는데

추가가안되네요 ㅠㅠ

[root@localhost tidy]# phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
^[[A[root@localhost tidy]# ./configure --enable-tidy
checking for egrep… grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ANSI C… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu
checking for PHP prefix… /usr/local/php_5.2.17
checking for PHP includes… -I/usr/local/php_5.2.17/include/php -I/usr/local/php_5.2.17/include/php/main -I/usr/local/php_5.2.17/include/php/TSRM -I/usr/local/php_5.2.17/include/php/Zend -I/usr/local/php_5.2.17/include/php/ext -I/usr/local/php_5.2.17/include/php/ext/date/lib
checking for PHP extension directory… /usr/local/php_5.2.17/lib/php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix… /usr/local/php_5.2.17/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… gawk
checking for TIDY support… yes, shared
configure: error: Cannot find libtidy

sulinux는 아직 써보지 못해서 패키지 관리자 뭐 쓰는지 모르겠고요.

우분투(11.10)라면 아래처럼 설치할 수 있습니다.

$ sudo apt-get install re2c libtidy-0.99-0 libtidy-dev