No workaround for wget https links under CentOS 6

Source: Internet
Author: User
Tags install openssl

CentOS6 the highest version of the wget is 1.11, but it is very regrettable that this version has a bug, there is no way to download the HTTPS link, so some people to avoid this situation will help the script plus not check SSL parameters--no-check-certificate, but obviously this method I am not Especially recommended, after all, this is not without solution.

In fact, the solution is not difficult, it is to GNU to download the new version of the wget to compile and replace the action.
Here's how:

Yum-y install OpenSSL openssl-devel gcc make Perl
CD ~
wget http://ftp.gnu.org/gnu/wget/wget-1.16.tar.gz
Yum-y Remove wget
TAR-XZVF wget-1.16.tar.gz
CD wget-1.16
./configure--with-ssl=openssl
Make && make install
Ln-s/usr/local/bin/wget/usr/bin/wget
Cd..
RM-RF wget-1.16*

Once you've replaced it, you'll be happy to download it.

No workaround for wget https links under CentOS 6

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.