前一篇資料(教學)在Ubuntu裡建立Apache with Tomcat 服務-1
再來要介紹JMagick及ImageMagick的安裝 in Ubuntu 9.10(Linux)
包含jpeg及png支援
1.安裝zlib ->jpeg需使用
#cd /opt/ #sudo wget http://www.zlib.net/zlib-1.2.3.tar.gz #sudo tar zxvf zlib-1.2.3.tar.gz #cd /opt/zlib-1.2.3 #sudo ./configure #sudo make #sudo make install
2.安裝jpeg lib 使其支援jpeg jpg格式
#sudo mkdir /usr/local/modules #sudo mkdir /usr/local/modules/jpeg6 #sudo mkdir /usr/local/modules/jpeg6/bin #sudo mkdir /usr/local/modules/jpeg6/lib #sudo mkdir /usr/local/modules/jpeg6/include #sudo mkdir /usr/local/modules/jpeg6/man #sudo mkdir /usr/local/modules/jpeg6/man/man1 #cd /opt/ #sudo wget http://ftp.ntu.edu.tw/gnu/pub/gnu/ghostscript/jpegsrc.v6b.tar.gz #sudo tar zxvf jpegsrc.v6b.tar.gz #cd /opt/jpeg-6b #sudo ./configure --prefix=/usr/local/modules/jpeg6 --enable-shared --enable-static #sudo make #sudo make install
3.安裝png lib 使其支援png格式
Read More