在装PHP之前,可能我们需要一些库支持和处理,比如支持gd对缩略图的支持,或者freetype对特殊效果如水印的支持等,其中有一个库叫libpng,装libpng的时候难是不难,但会出现错误,下面就对几种错误说明一下解决办法。
首先说一下所有问题的前提解决办法:读INSTALL文件
1.报错:error: ZLib not installed
很明显是ZLib没安装,读INSTALL文件知道,两种问题要注意:
1) 安装libpng前要安装ZLib
2) ZLib和libpng的目录结构应该是同一级的:
2.报错:
There is no \"configure\" script in this distribution of
libpng-1.2.8.
Instead, please copy the appropriate makefile for your system from the
\"scripts\" directory. Read the INSTALL file for more details.
Update, July 2004: you can get a "configure" based distribution
from the libpng distribution sites. Download the file
libpng-1.2.8-config.tar.gz
这个是在装libpng的时候,要做的是 在scripts下面的makefile.linux文件拷贝到libpng根目录下重命名为makefile,然后用命令 ./configure --prefix=/usr/local/libpng ,可是打开configure文件后发现,里面啥指令都没有,只是打印出一些话,就是上面那段话,意思就是说,不用configure啦,直接make就好了
所以 我们直接make/make install就好了
- 大小: 37.7 KB
分享到:
相关推荐
解决 libpng warning: iCCP: known incorrect sRGB profile
主要介绍了在Ubuntu 16.10安装mysql workbench报未安装软件包 libpng12-0错误的解决方法的相关资料,需要的朋友可以参考下
需要下载:libpng, zlib两个库 下载地址: libpng:http://libmng.com/pub/png/libpng.html zlib:http://www.zlib.net/ 注意事项: libpng, zlib解压后放到同一目录, 打开ibpng目录下的...
libpng开源库封装,解决png的内存编解码
libpng官网最新版的 libpng 库 !
libpng15
主要介绍了如何在centos上安装libpng库
使用dlib库的必备环境,libpng.lib,zlib.lib,libpng16.dll三个打包
报错libpng warning: iCCP: known incorrect sRGB profile的问题
libpng-1.6.6.tar.gz 应用于 linux 图片解析
解决报错libpng waring:iccp:known incorrect srgb profile,递归查找修改png图片为Qt适配使用的图片
之前在ubuntu18.04 LTS中安装某个软件之后,运行此软件时报错提示找不到libpng12的相关动态库文件,但是通过常规Linux软件安装方法也无法安装libpng12库。检查了其他版本libpng也提示安装了,但/usr/lib/libpng*没有...
zlib和libpng源码 zlib1.2.3.0 libpng1.2.35
libpng-1.2.51.tar.gz , 装过,好用
libpng-1.6.12.tar.xz 装过 好用
libpng-1.2.26.rar libpng-1.2.26.rar libpng-1.2.26.rar
LibPng 1.4.0 的源代码. 下载者请到LibPng网站上下载最新代码. www.libpng.org
libpng is the official PNG reference library. It supports almost all PNG features, is extensible, and has been extensively tested for over 20 years.
参考"解决问题:libpng warning: iCCP: known incorrect sRGB profile"[https://blog.csdn.net/WangJiankun_ls/article/details/79470739]文章,通过自己实践操作,得出结论,希望能帮助到你们
curl: (22) The requested URL returned error: 404 Not Found Error: Failed to download resource "libpng" Download failed: ...解决下载失败问题