Problems with installing PHP under Debian

Source: Internet
Author: User
Tags openssl version
Problems with installing PHP on Debian
This error occurred during configuration:
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 is in /include/curl/

Then I found a solution on the Internet:
#apt-get Install Curl
#apt-get Install Libcurl3
#apt-get Install Libcurl4-gnutls-dev

But there was an error while running 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.
Requested an impossible situation or if you are using the unstable
Distribution that some required packages has not yet been created
Or been moved out of Incoming.
The following information to resolve the situation:

The following packages has unmet dependencies:
Libcurl4-gnutls-dev:depends:libcurl3-gnutls (= 7.18.2-8lenny4) but 7.19.5-1.1 was to be installed
Depends:libgnutls-dev but it isn't going to being installed
Depends:libidn11-dev but it isn't going to being installed
Depends:libkrb5-dev but it isn't going to being installed or
Hurd but it's not installable
Depends:libldap2-dev but it isn't going to being installed
E:broken Packages
Can you tell me how this is going?

------Solution--------------------
These bags are missing.

Depends:libcurl3-gnutls (= 7.18.2-8lenny4) but 7.19.5-1.1 was to be installed
Depends:libgnutls-dev but it isn't going to being installed
Depends:libidn11-dev but it isn't going to being installed
Depends:libkrb5-dev but it isn't going to being installed or
Hurd but it's not installable
Depends:libldap2-dev but it isn't going to being installed

Best Apt-get Install together
------Solution--------------------
Installer It's best to find their dependencies and install them together so it's not easy to make errors.
------Solution--------------------
It's better to be missing something. Locate the file to install according to the error message, execute the Apt-get install package name

Can
------Solution--------------------
Just put it in the new building. You can also configure the connection between PHP, MySQL, and Apache
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.