Linux下JPEG库安装脚本
该脚本用于在Linux下安装JPEG库,在安装GD库的时候如果没有JPEG库,GD将不能生成JPEG格式的图象.作者: 何志强#----where to download----
#ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
#----.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 易做图,:)"
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"