爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 7558|回复: 3

win7系统虚拟机ubuntu Kylin16配置wrf过程中libpng出错

[复制链接]
发表于 2017-11-19 17:05:24 | 显示全部楼层 |阅读模式
5金钱
libpng-error.png
在安装libpng-1.6.16时,已经解压它的压缩包在usr/下,
cd /usr/libpng-1.6.16
export LDFLAGS=-L/usr/local/zlib/lib
export CPPFLAGS=-l/usr/local/zlib/include
./configure --prefix=/usr/local/libpng
然后出现错误:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/usr/libpng-1.6.16':
configure: error: C compiler cannot create executables
See `config.log' for more details

希望各位朋友能帮我看看解决下!十分感谢!!

最佳答案

查看完整内容

你把LDFLAGS和CPPFLAGS unset掉,重新configure看看错误是否变化
密码修改失败请联系微信:mofangbao
发表于 2017-11-19 17:05:25 | 显示全部楼层
你把LDFLAGS和CPPFLAGS unset掉,重新configure看看错误是否变化
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2017-11-19 20:14:22 | 显示全部楼层
checking whether the C compiler works... no
你有gcc编译器?初步看编译器不正确,当然也可能和你flags设定的参数错误有关。
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

 楼主| 发表于 2017-11-20 00:11:43 | 显示全部楼层
weilin421 发表于 2017-11-19 20:15
你把LDFLAGS和CPPFLAGS unset掉,重新configure看看错误是否变化

十分感谢,我把LDFLAGS和CPPFLAGS unset掉后configure又出现错误configure: error: zlib not installed,然后我在网上找到解决这个错误办法了。谢谢!
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表