亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問(wèn)板塊 發(fā)新帖
查看: 1530 | 回復(fù): 0
打印 上一主題 下一主題

PHP拓展gd庫(kù) [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2011-12-22 08:54 |只看該作者 |倒序?yàn)g覽
下載
zlib-1.2.2.tar.gz
jpegsrc.v6b.tar.gz
libpng-1.2.7.tar.tar
freetype-2.1.9.tar.gz
gd-2.0.33.tar.gz
安裝
1.安裝zlib
# tar zxvf zlib-1.2.5.tar.gz //解壓
# cd zlib-1.2.5 //改變目錄
# CFLAGS=”-O3 -fPIC” ./configure   //使用64位的方法進(jìn)行編譯 (一般只需要./configure)
# make
# make install
2.2.安裝libpng
tar zxvf libpng-1.2.7.tar.tar
cd libpng-1.2.7
cd scripts/
mv makefile.linux ../makefile
cd ..
make
make install
注意,這里的makefile不是用./configure生成,而是直接從scripts/里拷一個(gè)
3.安裝freetype
tar zxvf freetype-2.1.9.tar.gz
cd freetype-2.1.9
./configure --prefix=/usr/local/modules/freetype 
make
make install
d.jpeg
# wget http://www.ijg.org/files/jpegsrc.v8b.tar.gz //下載
# tar jpegsrc.v8b.tar.gz //解壓
# cd jpeg-8b //改變目錄
# ./configure –prefix=/usr/local/modules/jpeg7 –enable-shared –enable-static  //配置
# make //編譯
# make install  //安裝

e.GD
# wget http://www.boutell.com/gd/http/gd-2.0.33.tar.gz //下載
# tar xzvf gd-2.0.33.tar.gz //解壓
# cd gd-2.0.33 //改變目錄
# ./configure –prefix=/usr/local/modules/gd –with-jpeg=/usr/local/modules/jpeg7 –with-png=/usr/local/libpng –with-zlib –with-freetype=/usr/local/modules/freetype  //配置
# make //編譯
# make install  //安裝

4.PHP
a.libxml2  //只拓展gd,這個(gè)可以不裝
# wget ftp://xmlsoft.org/libxml2/libxml2-2.7.2.tar.gz //下載
# tar zxvf libxml2-2.7.2.tar.gz //解壓
# cd libxml2-2.7.2 //改變目錄
# ./configure –prefix=/usr/local/libxml2 //配置
# make //編譯
# make install //安裝
b.curl (系統(tǒng)安裝了就yum remove curl,然后下載一個(gè)新版的)  //只拓展gd,這個(gè)可以不裝
# wget http://curl.haxx.se/download/curl-7.19.0.tar.gz //下載
# tar -zxvf curl-7.19.0.tar.gz //解壓
# cd curl-7.19.0 //改變目錄
# ./configure –prefix=/usr/local/curl //配置
# make //編譯
# make install //安裝
c.PHP
# wget http://cn.php.net/get/php-5.2.8.tar.bz2/from/us.php.net/mirror
# tar jxvf php-5.2.8.tar.bz2
# cd php*
./configure --prefix=/opt/app/php5 --with-mysql=/opt/app/mysql --with-curl=/opt/app/curl --with-gd=/usr/local/modules/gd --enable-gd-native-ttf --with-jpeg-dir=/usr/local/modules/jpeg7 --with-png-dir=/usr/local/libpng --with-freetype-dir=/usr/local/modules/freetype --with-zlib --enable-fastcgi --enable-debug --enable-sockets    //只拓展gd的安裝步族,curl是先前安裝的
 
# ./configure –prefix=/usr/local/php –with-mysql=/usr/local/mysql –with-libxml-dir=/usr/local/libxml2 –with-gd=/usr/local/modules/gd –with-png-dir=/usr/local/libpng –with-jpeg-dir=/usr/local/modules/jpeg6 –with-zlib  –with-freetype-dir=/usr/local/modules/freetype –enable-magic-quotes –with-apxs2=/usr/local/apache/bin/apxs  –enable-ftp –with-config-file-path=/usr/local/php/etc –with-iconv –with-gettext –with-curl=/usr/local/curl
# make
# make install
重啟php即可
# cp php.ini-dist /usr/local/php/etc/php.ini  (這句。。。)
================================================
技術(shù)交流QQ:1359962567(↗freeda)
 
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP