Centos 6.2安装libpng错误信息configure: error: ZLib not insta
时间:2014-06-23 21:27 来源:linux.it.net.cn 作者:IT网
Centos 6.2安装libpng错误信息configure: error: ZLib not installed
在编译libpng-1.5.8.tar.gz的时候报错,configure: error: ZLib not installed,我是使用的以下包进行编译的
zlib-1.2.6.tar.gz libpng-1.5.8.tar.gz
解决方法:
1.进入zlib-1.2.6的源文件目录,执行命令 make clean,清除zlib;
2.重新配置 ./configure,后面不要接--prefix参数;
3.编译make && 安装 make install;
4.进入libpng-1.5.8目录,执行命令 ./configure --prefix=/usr/local/libpng;
5.编译make && 安装 make install;
6.安装成功;
make[2]: Leaving directory `/tmp/libpng-1.5.8'
test -z "/usr/local/libpng/share/man/man3" || /bin/mkdir -p "/usr/local/libpng/s hare/man/man3"
/usr/bin/install -c -m 644 libpng.3 libpngpf.3 '/usr/local/libpng/share/man/man 3'
test -z "/usr/local/libpng/share/man/man5" || /bin/mkdir -p "/usr/local/libpng/s hare/man/man5"
/usr/bin/install -c -m 644 png.5 '/usr/local/libpng/share/man/man5'
test -z "/usr/local/libpng/include/libpng15" || /bin/mkdir -p "/usr/local/libpng /include/libpng15"
/usr/bin/install -c -m 644 pnglibconf.h '/usr/local/libpng/include/libpng15'
test -z "/usr/local/libpng/lib/pkgconfig" || /bin/mkdir -p "/usr/local/libpng/li b/pkgconfig"
/usr/bin/install -c -m 644 libpng15.pc '/usr/local/libpng/lib/pkgconfig'
test -z "/usr/local/libpng/include/libpng15" || /bin/mkdir -p "/usr/local/libpng /include/libpng15"
/usr/bin/install -c -m 644 png.h pngconf.h '/usr/local/libpng/include/libpng15'
make install-data-hook
make[2]: Entering directory `/tmp/libpng-1.5.8'
cd /usr/local/libpng/include; rm -f png.h pngconf.h pnglibconf.h
cd /usr/local/libpng/include; ln -s libpng15/png.h png.h
cd /usr/local/libpng/include; ln -s libpng15/pngconf.h \
pngconf.h
cd /usr/local/libpng/include; ln -s libpng15/pnglibconf.h \
pnglibconf.h
cd /usr/local/libpng/lib/pkgconfig; rm -f libpng.pc
cd /usr/local/libpng/lib/pkgconfig; ln -s libpng15.pc libpng.pc
make[2]: Leaving directory `/tmp/libpng-1.5.8'
make[1]: Leaving directory `/tmp/libpng-1.5.8'
[root@centos libpng-1.5.8]#
目录已经建立:
[root@centos tmp]# cd /usr/local/libpng/
[root@centos libpng]# ls
bin include lib share
[root@centos libpng]#
(责任编辑:IT)
Centos 6.2安装libpng错误信息configure: error: ZLib not installed 在编译libpng-1.5.8.tar.gz的时候报错,configure: error: ZLib not installed,我是使用的以下包进行编译的 zlib-1.2.6.tar.gz libpng-1.5.8.tar.gz 解决方法: 1.进入zlib-1.2.6的源文件目录,执行命令 make clean,清除zlib; 2.重新配置 ./configure,后面不要接--prefix参数; 3.编译make && 安装 make install; 4.进入libpng-1.5.8目录,执行命令 ./configure --prefix=/usr/local/libpng; 5.编译make && 安装 make install; 6.安装成功; make[2]: Leaving directory `/tmp/libpng-1.5.8' test -z "/usr/local/libpng/share/man/man3" || /bin/mkdir -p "/usr/local/libpng/s hare/man/man3" /usr/bin/install -c -m 644 libpng.3 libpngpf.3 '/usr/local/libpng/share/man/man 3' test -z "/usr/local/libpng/share/man/man5" || /bin/mkdir -p "/usr/local/libpng/s hare/man/man5" /usr/bin/install -c -m 644 png.5 '/usr/local/libpng/share/man/man5' test -z "/usr/local/libpng/include/libpng15" || /bin/mkdir -p "/usr/local/libpng /include/libpng15" /usr/bin/install -c -m 644 pnglibconf.h '/usr/local/libpng/include/libpng15' test -z "/usr/local/libpng/lib/pkgconfig" || /bin/mkdir -p "/usr/local/libpng/li b/pkgconfig" /usr/bin/install -c -m 644 libpng15.pc '/usr/local/libpng/lib/pkgconfig' test -z "/usr/local/libpng/include/libpng15" || /bin/mkdir -p "/usr/local/libpng /include/libpng15" /usr/bin/install -c -m 644 png.h pngconf.h '/usr/local/libpng/include/libpng15' make install-data-hook make[2]: Entering directory `/tmp/libpng-1.5.8' cd /usr/local/libpng/include; rm -f png.h pngconf.h pnglibconf.h cd /usr/local/libpng/include; ln -s libpng15/png.h png.h cd /usr/local/libpng/include; ln -s libpng15/pngconf.h \ pngconf.h cd /usr/local/libpng/include; ln -s libpng15/pnglibconf.h \ pnglibconf.h cd /usr/local/libpng/lib/pkgconfig; rm -f libpng.pc cd /usr/local/libpng/lib/pkgconfig; ln -s libpng15.pc libpng.pc make[2]: Leaving directory `/tmp/libpng-1.5.8' make[1]: Leaving directory `/tmp/libpng-1.5.8' [root@centos libpng-1.5.8]# 目录已经建立: [root@centos tmp]# cd /usr/local/libpng/ [root@centos libpng]# ls bin include lib share [root@centos libpng]# (责任编辑:IT) |