在debian上安装PHP时遇到的有关问题

WBOY
풀어 주다: 2016-06-13 12:51:00
원래의
1293명이 탐색했습니다.

在debian上安装PHP时遇到的问题
配置的时候出现了这样的错误:
Configuring extensions
checking for OpenSSL support... yes
checking for Kerberos support... no
checking for pkg-config... /usr/bin/pkg-config
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... yes
checking for SSL_CTX_set_ssl_version in -lssl... yes
checking for PCRE support... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... yes
checking for CURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in /include/curl/

然后我在网上找到一个解决办法:
#apt-get install curl
#apt-get install libcurl3
#apt-get install libcurl4-gnutls-dev

但是运行apt-get install libcurl4-gnutls-dev的时候又出现了错误:
# apt-get install libcurl4-gnutls-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libcurl4-gnutls-dev: Depends: libcurl3-gnutls (= 7.18.2-8lenny4) but 7.19.5-1.1 is to be installed
                       Depends: libgnutls-dev but it is not going to be installed
                       Depends: libidn11-dev but it is not going to be installed
                       Depends: libkrb5-dev but it is not going to be installed or
                                hurd but it is not installable
                       Depends: libldap2-dev but it is not going to be installed

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!