Linux下JPEG庫安裝指令碼(轉)

ba發表於2007-08-11
Linux下JPEG庫安裝指令碼(轉)[@more@]該指令碼用於在Linux下安裝JPEG庫,在安裝GD庫的時候如果沒有JPEG庫,GD將不能生成JPEG格式的圖象.
作者: 何志強#----where to download----
#

#----.tar.gz file name----
jpeg_tar_gz=jpegsrc.v6b.tar.gz

#----which version----
ver_jpeg=jpeg-6b

#----where to install----
jpeg=/usr/local/jpeg

#----untar----
tar xzvf $jpeg_tar_gz

#----install----
cd $ver_jpeg
./configure --prefix=$jpeg --enable-shared --enable-static
make
mkdir $jpeg
mkdir $jpeg/include
mkdir $jpeg/lib
mkdir $jpeg/bin
mkdir $jpeg/man
mkdir $jpeg/man/man1
make install
cd ..

#----free----
rm -rf $ver_jpeg

#----configuration information----
echo "---------------------------------------------------------------------"
echo "please add following lines in you /etc/profile"
echo "("
echo " tip:"
echo " you can add these lines in a file named /etc/profile.jpeg,"
echo " and then add a line on the end of /etc/profile:"
echo " . /etc/profile.jpeg"
echo " it is simple,:)"
echo "):"
echo " PATH=""$""PATH:$jpeg/bin"
echo " CPLUS_INCLUDE_PATH=""$""CPLUS_INCLUDE_PATH:$jpeg/include"
echo " LD_LIBRARY_PATH=""$""LD_LIBRARY_PATH:$jpeg/lib"
echo " LIBRARY_PATH=""$""LIBRARY_PATH:$jpeg/lib"
echo " MANPATH=""$""MANPATH:$jpeg/man"
echo ""
echo " export PATH CPLUS_INCLUDE_PATH LD_LIBRARY_PATH LIBRARY_PATH MANPATH"

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617731/viewspace-947860/,如需轉載,請註明出處,否則將追究法律責任。

相關文章