添加curl扩展模块

wget  http://curl.haxx.se/download/curl-7.17.1.tar.gz

tar -zxvf curl-7.17.1.tar.gz

cd curl-7.17.1

./configure --prefix=/usr/local/curl

 make

make install

/usr/local/php-5.2.9/bin/php-config |grep config

cd /usr/local/src/php-5.2.9/

./configure --prefix=/usr/local/php-5.2.9/ --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-libxml-dir --enable-gd-native-ttf --enable-mbstring --with-gd=/usr/local/gd-2.0.33/ --with-mysql=/usr/local/mysql --with-freetype-dir=/usr/local/freetype-2.4.3 --with-jpeg-dir=/usr/local/jpeg-8b/ --with-png-dir=/usr/local/libpng-1.4.4/ --with-curl=/usr/local/curl

make&&make installl

不解释 +1, - -!

你可能感兴趣的:(PHP,职场,curl,休闲,扩展模块)