$ cd /cygdrive/f/cygwinphpphp
$ wget http://mirrors.sohu.com/php/php-5.2.17.tar.gzmysql
$ tar xzvf php-5.2.17.tar.gzsql
$ ./configure --prefix=/cygdrive/f/cygwinphp/php5217install/php --with-mysql-dir=/cygdrive/f/cygwinmysql/install --disable-debug --with-pic \
--disable-rpath --enable-inline-optimization \
--with-pdo-mysql=/cygdrive/f/cygwinmysql/install --enable-xml --with-gd \
--with-freetype-dir=/usr --with-png-dir --without-iconv \
--with-jpeg-dir --with-zlib --enable-fastcgi \
--with-config-file-path=/cygdrive/f/cygwinphp/php5217install/php/etc \
--with-config-file-scan-dir=/cygdrive/f/cygwinphp/php5217install/php/etc/php.d \
--with-mcrypt --with-mbstring --enable-mbstring=all \
--with-layout=GNU \
#指定相應的mysql;debug
$ makexml
$ make installpdo