- 积分
- 6
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-9-10
- 最后登录
- 1970-1-1
|
5金钱
在安装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看看错误是否变化
|