Can Linux install cUrl to overwrite the cUrl in the system?

Source: Internet
Author: User
The default curl in Ubuntu14.04 is in the usrbin directory, and the version is 7.35libcurl or 7.35. The newly downloaded curl is 7.48 and installed in usrlocalcurl. The curl version is 7.48 and the libcurl version is 7.35. If you delete curl under the usrbin directory, the default curl in curl... Ubuntu 14.04 in usrlocalcurl is in the usr/bin directory, and the version is 7.35 libcurl or 7.35.

  • The newly downloaded curl is 7.48, installed in/usr/local/curl. The curl version is 7.48, And the libcurl version is 7.35.

  • If you delete the curl in the/usr/bin directory, the curl version in/usr/local/curl is 7.48, And the libcurl version is 7.48.

  • If the latest curl is installed under/usr/, that is, the curl of the system is replaced, the curl version and libcurl version are both the latest.

What is the cause of this phenomenon?
Are php versions required to install curl of different versions?
Can a server upgrade cUrl overwrite the cUrl in the system?

Reply content:

The default curl in Ubuntu 14.04 is in the usr/bin directory. The version is 7.35 libcurl and 7.35.

  • The newly downloaded curl is 7.48, installed in/usr/local/curl. The curl version is 7.48, And the libcurl version is 7.35.

  • If you delete the curl in the/usr/bin directory, the curl version in/usr/local/curl is 7.48, And the libcurl version is 7.48.

  • If the latest curl is installed under/usr/, that is, the curl of the system is replaced, the curl version and libcurl version are both the latest.

What is the cause of this phenomenon?
Are php versions required to install curl of different versions?
Can a server upgrade cUrl overwrite the cUrl in the system?

First, do not confuse the system CURL with the php curl library. They exist independently.

In addition, to replace the version, you only need to rename the curl backup in the/usr/bin directory, and then soft link the new executable file to the/usr/bin directory.

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.