文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Linux下JPEG库安装脚本

Linux下JPEG库安装脚本

时间:2007-02-17  来源:PHP爱好者

该脚本用于在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"
php爱好者站 http://www.phpfans.net PHP|MySQL|javascript|ajax|html.
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载