歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux綜合 >> Linux資訊 >> Linux文化

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 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"

整理編輯:China ASP


Copyright © Linux教程網 All Rights Reserved