免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1971 | 回复: 7
打印 上一主题 下一主题

OpenBSD下编译PHP出错 求助! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-05 15:34 |只看该作者 |倒序浏览
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... (cached) yes
checking for SSL_CTX_set_ssl_version in -lssl... (cached) yes
checking for GD support... yes
checking for the location of libjpeg... /usr/local/include/libpng/
checking for the location of libpng... /usr/local/include/
checking for the location of libXpm... no
checking for FreeType 1.x support... yes
checking for FreeType 2... yes
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
configure: error: png.h not found.:wink:

论坛徽章:
0
2 [报告]
发表于 2008-08-05 15:50 |只看该作者
你./configure 后面的参数呢?贴上来看看

论坛徽章:
0
3 [报告]
发表于 2008-08-05 16:39 |只看该作者
./configure --disable-debug --enable-force-cgi-redirect --enable-bcmath --enable-calendar --enable-discard-path --with-gd --with-openssl --with-zlib --enable-magic-quotes --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-iconv --enable-exif --enable-sockets --enable-wddx --enable-shmop --enable-soap --enable-fastcgi --disable-rpath --enable-inline-optimization --with-gmp --with-regex=system  --enable-ctype --enable-dbase --enable-pcntl --enable-ftp --enable-mbstring --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-zend-multibyte  --with-xsl --with-ldap --with-ncurses --with-curl --enable-mbregex --with-bz2 --with-libxml-dir --with-mime-magic --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib-dir --enable-fpm --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc

论坛徽章:
0
4 [报告]
发表于 2008-08-05 16:48 |只看该作者
这是你的GD相关的包文件没有找到
确认一下你安装了libpng-devel
如果还不行,就指定一下libpng的路径

[ 本帖最后由 yoursmile 于 2008-8-5 16:49 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-08-05 17:07 |只看该作者
谢谢您 我先试试吧

论坛徽章:
0
6 [报告]
发表于 2008-08-05 17:17 |只看该作者

回复 #5 DreamRainy 的帖子

我的Red hat linux  配置参数供参考:
./configure' '--prefix=/usr/local/php' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-gd=/usr' '--with-zlib-dir=/usr/local' '--with-mysql=/usr/include' '--with-apxs2=/usr/sbin/apxs'

论坛徽章:
0
7 [报告]
发表于 2008-08-05 21:03 |只看该作者
谢谢 yoursmile!问题解决了
我把 /usr/local/include/libpng/ 下的文件全部拷贝到了  /usr/local/include/ 编译通过了

论坛徽章:
0
8 [报告]
发表于 2008-08-05 21:16 |只看该作者
幸亏文件也不大.你可以用ln搞个符号连接嘛,呵呵!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP