网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > 服务器环境搭建
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

服务器环境搭建 Windows,Linux,IIS,Apache等服务器配置、安全维护以及PHP和MYSQL运行环境讨论。

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   IP: 180.125.50.245
Old 2016-05-25, 01:57 PM
North City North City is offline
初级会员
 
Join Date: 2008-10-24
Posts: 2
North City 现在声名狼藉
Default 安装libpng出现configure: error: ZLib not installed

在CentOS5.4下安装libpng
./configure --prefix=/usr/local/libpng
提示:

configure: error: ZLib not installed


在装libpng之前,我先装了zlib。可为什么还是提示找不到呢?
我接着查了资料,有文档说libpng不用configure,是拷贝scripts/makefile.linux
我又执行如下命令:
cp scripts/makefile.linux makefile
make
结果,,出错更多了,。。

最后的解决方案是:

1.进入zlib的源文件目录,执行命令 make clean,清除zlib;

2.重新配置 ./configure,后面不要接--prefix参数;

3.编辑 && 安装;

4.进入libpng目录,执行命令 ./configure --prefix=/usr/local/libpng;

5.编译 && 安装;

6.安装成功;
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
zen-cart v1.5.5 How do I change the "Congratulations! you have successfully installed Questa ZenCart 1 2016-04-03 04:06 PM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 07:42 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.