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

今天在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-ihttp:/www.baidu.com
  2. /libexec/ld-elf.so.1:/lib/libc.so.7:versionfbsd_1.1requiredby/usr/local/lib/libcurl.so.6notfound

查看curl安装:

  1. pkg_info
  2. autoconf-2.68automaticallyconfiguresourcecodeonmanyun*xplatforms
  3. autoconf-wrapper-20101119wrapperscriptforgnuautoconf
  4. ca_root_nss-3.12.9therootcertificatebundlefromthemozillaproject
  5. curl-7.21.3_1non-interactivetooltogetfilesfromftp,gopher,http(s)
  6. expat-2.0.1_1xml1.0parserwritteninc
  7. fontconfig-2.8.0,1anxml-basedfontconfigurationapiforxwindows
  8. freetds-0.64_6,1sybase/microsofttdsprotocollibrary
  9. freetype-1.3.1_4afreeandportabletruetypefontrenderingengine
  10. freetype2-2.4.2afreeandportabletruetypefontrenderingengine
  11. gd-2.0.35_7,1agraphicslibraryforfastcreationofimages
  12. gettext-0.18_1gnugettextpackage
  13. jpeg-8_3ijg'sjpegcompressionutilities
  14. libiconv-1.13.1_1acharactersetconversionlibrary
  15. libmcrypt-2.5.8multi-ciphercryptographiclibrary(usedinphp)
  16. libxml2-2.7.7xmlparserlibraryforgnome
  17. m4-1.4.16,1gnum4
  18. mcrypt-2.6.8_1replacementforcrypt(1)
  19. mhash-0.9.9.9_1aneasy-to-uselibraryforstronghashessuchasmd5andsh
  20. mysql-client-5.1.57multithreadedsqldatabase(client)
  21. openssl-1.0.0_5sslandcryptolibrary
  22. perl-5.12.3practicalextractionandreportlanguage
  23. pkg-config-0.25autilitytoretrieveinformationaboutinstalledlibraries
  24. png-1.4.3libraryformanipulatingpngimages

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

  1. pkg_deletecurl-7.21.3_1
  2. pkg_addcurl-7.20.1.tbz

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

  1. curl-s-ihttp://www.baidu.com
  2. http/1.1200ok
  3. date:fri,12aug201106:25:15gmt
  4. server:bws/1.0
  5. content-length:7410
  6. content-type:text/html;charset=gb2312
  7. cache-control:private
  8. expires:fri,12aug201106:25:15gmt
  9. set-cookie:baiduid=54227967e6575cd8f357b26f5b8130eb:fg=1;expires=fri,12-aug-4106:25:15gmt;path=/;domain=.baidu.com
  10. p3p:cp="otidspcorivaourindcom"
  11. connection:keep-alive

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

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

抱歉!评论已关闭.