Linux下JPEG庫安裝指令碼(轉)
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"
作者: 何志強#----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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 在Linux系統下安裝Perl指令碼語言(轉)Linux指令碼
- Oracle for Linux 安裝前環境配置指令碼(轉)OracleLinux指令碼
- Linux下利用指令碼靜默安裝Oracle11GLinux指令碼Oracle
- linux下amsn安裝(轉)Linux
- 實用的linux下指令碼!(轉)Linux指令碼
- JPEG轉RGB Bmp(IJG庫 jpeg.lib)
- linux下expect環境安裝以及簡單指令碼測試Linux指令碼
- Linux下Informix資料庫簡明安裝指南(轉)LinuxORM資料庫
- CentOS下LAMP一鍵yum安裝指令碼CentOSLAMP指令碼
- Linux下PostgreSQL原始碼安裝LinuxSQL原始碼
- pyenv 安裝指令碼指令碼
- lnmp安裝指令碼LNMP指令碼
- Linux下安裝Mysql資料庫LinuxMySql資料庫
- Linux下軟體的安裝與解除安裝(轉)Linux
- Linux 筆記分享十六:指令碼安裝包Linux筆記指令碼
- Linux下安裝mantis配置指南【轉】Linux
- Linux下的軟體安裝(轉)Linux
- Linux下Oracle安裝寶典 (轉)LinuxOracle
- Linux下Oracle安裝寶典(轉)LinuxOracle
- Linux下Unicon安裝流程(轉)Linux
- Linux下即插即用裝置的安裝(轉)Linux
- linux下LAMP原始碼安裝部署LinuxLAMP原始碼
- linux下從原始碼安裝gitLinux原始碼Git
- linux下軟體的基本安裝和解除安裝(轉)Linux
- linux下oracle資料庫的安裝LinuxOracle資料庫
- Docker的指令碼安裝Docker指令碼
- Tomcat安裝指令碼Tomcat指令碼
- LNMP安裝shell指令碼LNMP指令碼
- Ansible安裝指令碼指令碼
- install安裝指令碼指令碼
- Bash 指令碼安裝 MySQL-8.0.20 資料庫指令碼MySql資料庫
- MySQL資料庫叢集自動安裝指令碼!MySql資料庫指令碼
- linux下安裝php的imagick擴充套件模組(附php升級指令碼)LinuxPHP套件指令碼
- 建庫指令碼下載指令碼
- linux 下 squid 安裝日誌 (轉)LinuxUI
- Debian Linux下安裝永中office(轉)Linux
- 在Linux(Debian)下安裝mono(轉)LinuxMono
- mysql在linux下的完整安裝(轉)MySqlLinux