Linux下JPEG库安装脚本

释放双眼,带上耳机,听听看~!

Linux下JPEG库安装脚本(转)[@more@]该脚本用于在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"

给TA打赏
共{{data.count}}人
人已打赏
安全技术安全运维

Windows服务器如何发现被黑

2018-5-20 12:24:31

安全技术

详解Node.js API系列 Http模块(2) CNodejs爬虫实现

2021-12-21 16:36:11

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索