安装LibPNG
1.下载
2.编译安装
#tar -xzf libpng-1.2.23.tar.gz
#cd libpng-1.2.23
#cp scripts/makefile.linux makefile
(此处没有./configure)
#make
#make install
安装JPEG:
1.下载
2.编译安装
#tar -xzf jpegsrc.v6b.tar.gz
#cd jpegsrc.v6b
#./configure --enable-shared
#make
#make instll
最后一步出错:
解决方法:
#mkdir /usr/local/man/man1
安装gd
#tar xzvf gd-2.0.35.tar.gz
#cd gd-2.0.35
#./configure --prefix=/usr/local/gd2
#make
出错如下:
cd .&&/bin/sh/usr/local/tarballs/gd-2.0.35/config/missing --run aclocal-1.9 -I config
/usr/local/tarballs/gd-2.0.35/config/missing:line46:aclocal-1.9:command not found
WARNING: 'alcocal-1.9' is missing on your system.you should only need it is you modified 'acinclude.m4' or 'configure.ac'. you might want to install the 'Automake' and 'perl' packages.Grab them from any GNU archive site.
cd . && /bin/sh/usr/local/tarballs/gd-2.0.35/config/missing --run automake-1.9--foreign
/usr/local/tarballs/gd-2.0.35/config/missing:line 46:sutomake-1.9:command ont found
WARNING:'automake-1.9' is missing on your system.you should only need it is you modified 'makefile.am','acinclude.m4' or 'configure.am'.you might want to install the 'automake' and 'pe rl'package.
grab them from any GNU archive site.
..................
(此处出错如图error1,有待处理)
解决办法:
1.下载autoconf2-2.61.tar.gz
2.找到autoconf的位置
#rpm -qf /usr/bin/autoconf
#find / -name autoconf
autoconf-2.57-3
3.编译安装
#tar -xzf autoconf-2.61.tar.gz
#./configure --prefix=/usr/local
#make
#rpm -e --nodeps autoconf-2.57-3
#make install
4.测试版本
#find / -name autoconf
/usr/bin/autoconf
....................
#cd /usr/local/bin
#./autoconf --version
atutoconf-2.61
另外,还有可能还要安装 freetype-2.3.12 ,然后
安装gd
#tar xzvf gd-2.0.35.tar.gz
#cd gd-2.0.35
#./configure --prefix=/opt/gd-2.0.35 --with-freetype=/opt/freetype-2.3.12/lib
#make
#make install
评论