Fix Ubuntu under Could not find CURL (missing:curl_library curl_include_dir)

Source: Internet
Author: User

  • Ubuntu CMake Compile-time problem: Could not find CURL (missing:curl_library curl_include_dir)
  • Find Find # sudo apt-get install Libcurl4-openssl-dev
    New problems, some people may appear 1, some appear 2.
    • 1: Reading the package list ... Complete
      Analyzing Dependency tree for Package
      Reading status information ... Complete
      E: Package not found Libcurl4-openssl-dev
    • 2:libcurl4-openssl-dev: dependent: libcurl3 (= 7.22.0-3ubuntu4) But 7.22.0-3ubuntu4.8 is going to be installed
      Dependent: Libkrb5-dev But it will not be installed
      Dependent: Libldap2-dev But it will not be installed
      Dependent: Librtmp-dev But it will not be installed
      E: The error cannot be corrected because you require certain packages to remain current, that is, they destroy the dependencies between the software packages.
  • Run # Apt-cache depends Libcurl4-openssl-dev will find
    • Libcurl4-openssl-dev
      Dependency: Libcurl3
      | dependency: Libc6-dev
      Dependency: <libc-dev>
      Libc6-dev
      Dependency: Libidn11-dev
      Dependency: Libkrb5-dev
      Dependency: Libldap2-dev
      Dependency: Librtmp-dev
      Dependency: Libssl-dev
      Dependency: Zlib1g-dev
      Recommendation: libcurl3-dbg
      Conflict: <libcurl-dev>
      Libcurl4-gnutls-dev
      Libcurl4-nss-dev
      Conflict: <libcurl-dev:i386>
      Libcurl4-gnutls-dev:i386
      Libcurl4-nss-dev:i386
      Replacement: <libcurl-dev>
      Libcurl4-gnutls-dev
      Libcurl4-nss-dev
      Libcurl4-openssl-dev
      Replacement: <libcurl-dev:i386>
      Libcurl4-gnutls-dev:i386
      Libcurl4-nss-dev:i386
      Libcurl4-openssl-dev:i386
      Replacement: <libcurl-ssl-dev>
      Libcurl4-gnutls-dev
      Libcurl4-nss-dev
      Libcurl4-openssl-dev
      Replacement: <libcurl-ssl-dev:i386>
      Libcurl4-gnutls-dev:i386
      Libcurl4-nss-dev:i386
      Libcurl4-openssl-dev:i386
      Replacement: <libcurl3-dev>
      Replacement: <libcurl3-dev:i386>
      Replacement: <libcurl3-openssl-dev>
      Libcurl4-openssl-dev
      Replacement: <libcurl3-openssl-dev:i386>
      Libcurl4-openssl-dev:i386
      Conflict: libcurl4-openssl-dev:i386
  • Here can be found that their own source of software should be a problem, a conflict, etc., need to update their own software source, the irrelevant removal.
1. # sudo gedit/etc/apt/sources.list update to the following address, the current other address is also available. Deb Http://ubuntu.cn99.com/ubuntu/precise main restricted universe multiverse
Deb Http://ubuntu.cn99.com/ubuntu/precise-updates main restricted universe multiverse
Deb Http://ubuntu.cn99.com/ubuntu/precise-security main restricted universe multiverse
Deb Http://ubuntu.cn99.com/ubuntu/precise-backports main restricted universe multiverse
Deb Http://ubuntu.cn99.com/ubuntu-cn/precise main restricted universe multiverse or you can work through the UI, which is not recommended 2.sudo apt-get clean && sudo apt-get AutoClean #--------Cleanup the archive of downloaded files && clean up outdated packages only 3.# sudo apt-get update package, the speed of this address I test quickly 4. #sudo apt-get Upgrade Update the local software 5. #sudo apt-get Install Libcurl4-openssl-dev installation software successfully 6. #cmake. Under Makelist.txt path 7. #make

Fix Ubuntu under Could not find CURL (missing:curl_library curl_include_dir)

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.