Can Linux installation curl overwrite curl in the system?

Source: Internet
Author: User
The default curl in Ubuntu 14.04 is in the Usr/bin directory, and the version is 7.35 Libcurl is also 7.35.

    • My newly downloaded curl is 7.48, installed under/usr/local/curl, and the Curl version is 7.48,libcurl is 7.35.

    • If you remove the Curl version of Curl,/usr/local/curl in the/usr/bin directory, the 7.48,libcurl version is 7.48.

    • If you install the latest curl under/usr/, that is, replace the system curl, both the curl and Libcurl versions are the latest versions.

What is the cause of this phenomenon?
Is there a requirement for PHP versions to install different versions of Curl?
Server Upgrade curl can I overwrite curl in the system?

Reply content:

The default curl in Ubuntu 14.04 is in the Usr/bin directory, and the version is 7.35 Libcurl is also 7.35.

    • My newly downloaded curl is 7.48, installed under/usr/local/curl, and the Curl version is 7.48,libcurl is 7.35.

    • If you remove the Curl version of Curl,/usr/local/curl in the/usr/bin directory, the 7.48,libcurl version is 7.48.

    • If you install the latest curl under/usr/, that is, replace the system curl, both the curl and Libcurl versions are the latest versions.

What is the cause of this phenomenon?
Is there a requirement for PHP versions to install different versions of Curl?
Server Upgrade curl can I overwrite curl in the system?

First you don't confuse the system's curl with PHP's curl library, they are independent.

In addition, you have to replace the version of the system only need the/usr/bin directory curl renamed Backup, and then the new executable software chain to/usr/bin under the

ln -s /usr/local/curl /usr/bin/curl
  • 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.