今天在FreeBSD 7.0上编译安装php-5.2.17时出现了一个问题,怎么./configure都不过,一直报如下错误:
configure: error: There is something wrong. Please check config.log for more information.
最终找到了原因所在,是因为curl没有正确安装。
测试curl命令:
- curl -s -I http:/www.baidu.com
- /libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.1 required by /usr/local/lib/libcurl.so.6 not found
查看curl安装:
- pkg_info
- autoconf-2.68 Automatically configure source code on many Un*x platforms
- autoconf-wrapper-20101119 Wrapper script for GNU autoconf
- ca_root_nss-3.12.9 The root certificate bundle from the Mozilla Project
- curl-7.21.3_1 Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
- expat-2.0.1_1 XML 1.0 parser written in C
- fontconfig-2.8.0,1 An XML-based font configuration API for X Windows
- freetds-0.64_6,1 Sybase/Microsoft TDS protocol library
- freetype-1.3.1_4 A free and portable TrueType font rendering engine
- freetype2-2.4.2 A free and portable TrueType font rendering engine
- gd-2.0.35_7,1 A graphics library for fast creation of images
- gettext-0.18_1 GNU gettext package
- jpeg-8_3 IJG's jpeg compression utilities
- libiconv-1.13.1_1 A character set conversion library
- libmcrypt-2.5.8 Multi-cipher cryptographic library (used in PHP)
- libxml2-2.7.7 XML parser library for GNOME
- m4-1.4.16,1 GNU m4
- mcrypt-2.6.8_1 Replacement for crypt(1)
- mhash-0.9.9.9_1 An easy-to-use library for strong hashes such as MD5 and SH
- mysql-client-5.1.57 Multithreaded SQL database (client)
- openssl-1.0.0_5 SSL and crypto library
- perl-5.12.3 Practical Extraction and Report Language
- pkg-config-0.25 A utility to retrieve information about installed libraries
- png-1.4.3 Library for manipulating PNG images
curl已经安装,但是不能用,卸载掉重新安装之前的旧版本试试:
- pkg_delete curl-7.21.3_1
- pkg_add curl-7.20.1.tbz
安装curl-7.20.1.tbz后再次测试curl命令:
- curl -s -I http://www.baidu.com
- HTTP/1.1 200 OK
- Date: Fri, 12 Aug 2011 06:25:15 GMT
- Server: BWS/1.0
- Content-Length: 7410
- Content-Type: text/html;charset=gb2312
- Cache-Control: private
- Expires: Fri, 12 Aug 2011 06:25:15 GMT
- Set-Cookie: BAIDUID=54227967E6575CD8F357B26F5B8130EB:FG=1; expires=Fri, 12-Aug-41 06:25:15 GMT; path=/; domain=.baidu.com
- P3P: CP=" OTI DSP COR IVA OUR IND COM "
- Connection: Keep-Alive
OK可以使用了,重新编译php-5.2.17。通过。。。哎! 一次经历啊!
如非注明则为本站原创文章,欢迎转载。转载请注明转载自:moon's blog