现在的位置: 首页FreeBSD>正文
curl未正确安装引起FreeBSD7.0上编译安装php时的错误 [原创]
2011年08月12日 FreeBSD curl未正确安装引起FreeBSD7.0上编译安装php时的错误 [原创]已关闭评论 ⁄ 被围观 11,928 次+

今天在FreeBSD 7.0上编译安装php-5.2.17时出现了一个问题,怎么./configure都不过,一直报如下错误:
configure: error: There is something wrong. Please check config.log for more information.
最终找到了原因所在,是因为curl没有正确安装。

测试curl命令:

  1. curl -s -I http:/www.baidu.com   
  2. /libexec/ld-elf.so.1: /lib/libc.so.7: version FBSD_1.1 required by /usr/local/lib/libcurl.so.6 not found  

查看curl安装:

  1. pkg_info   
  2. autoconf-2.68       Automatically configure source code on many Un*x platforms   
  3. autoconf-wrapper-20101119 Wrapper script for GNU autoconf   
  4. ca_root_nss-3.12.9  The root certificate bundle from the Mozilla Project   
  5. curl-7.21.3_1       Non-interactive tool to get files from FTP, GOPHER, HTTP(S)   
  6. expat-2.0.1_1       XML 1.0 parser written in C   
  7. fontconfig-2.8.0,1  An XML-based font configuration API for X Windows   
  8. freetds-0.64_6,1    Sybase/Microsoft TDS protocol library   
  9. freetype-1.3.1_4    A free and portable TrueType font rendering engine   
  10. freetype2-2.4.2     A free and portable TrueType font rendering engine   
  11. gd-2.0.35_7,1       A graphics library for fast creation of images   
  12. gettext-0.18_1      GNU gettext package  
  13. jpeg-8_3            IJG's jpeg compression utilities   
  14. libiconv-1.13.1_1   A character set conversion library   
  15. libmcrypt-2.5.8     Multi-cipher cryptographic library (used in PHP)   
  16. libxml2-2.7.7       XML parser library for GNOME   
  17. m4-1.4.16,1         GNU m4   
  18. mcrypt-2.6.8_1      Replacement for crypt(1)   
  19. mhash-0.9.9.9_1     An easy-to-use library for strong hashes such as MD5 and SH   
  20. mysql-client-5.1.57 Multithreaded SQL database (client)   
  21. openssl-1.0.0_5     SSL and crypto library   
  22. perl-5.12.3         Practical Extraction and Report Language   
  23. pkg-config-0.25     A utility to retrieve information about installed libraries   
  24. png-1.4.3           Library for manipulating PNG images  

curl已经安装,但是不能用,卸载掉重新安装之前的旧版本试试:

  1. pkg_delete curl-7.21.3_1   
  2. pkg_add curl-7.20.1.tbz  

安装curl-7.20.1.tbz后再次测试curl命令:

  1. curl -s -I http://www.baidu.com   
  2. HTTP/1.1 200 OK   
  3. Date: Fri, 12 Aug 2011 06:25:15 GMT   
  4. Server: BWS/1.0   
  5. Content-Length: 7410   
  6. Content-Type: text/html;charset=gb2312   
  7. Cache-Control: private   
  8. Expires: Fri, 12 Aug 2011 06:25:15 GMT   
  9. Set-Cookie: BAIDUID=54227967E6575CD8F357B26F5B8130EB:FG=1; expires=Fri, 12-Aug-41 06:25:15 GMT; path=/; domain=.baidu.com   
  10. P3P: CP=" OTI DSP COR IVA OUR IND COM "  
  11. Connection: Keep-Alive  

OK可以使用了,重新编译php-5.2.17。通过。。。哎! 一次经历啊!

本文地址:http://www.92csz.com/12/902.html
如非注明则为本站原创文章,欢迎转载。转载请注明转载自:moon's blog
 

抱歉!评论已关闭.