tutorial on installing SSL protocol dependent library OpenSSL in Linux

Source: Internet
Author: User
Tags ftp install openssl openssl openssl version

0. Introduced by a mistake

The code is as follows:

Fatal error:openssl/aes.h:no such file or directory

If you encounter this error at compile time, this may be the following reason: The program you are trying to compile uses OpenSSL, but the files (libraries and headers) that need to be linked with OpenSSL are missing on your Linux platform.

To solve this problem, you need to install the OpenSSL development package, which is available in all modern Linux distributions in the standard software repository.

To install OpenSSL on Debian, Ubuntu, or other derivative editions:

The code is as follows:

$ sudo apt-get install Libssl-dev

To install the OpenSSL development package on Fedora, CentOS, or Rhel:

The code is as follows:

$ sudo yum install Openssl-devel

Now let's take a look at how to download the package to install itself:

1. Download

The code is as follows:

# wget ftp://ftp.openssl.org/source/openssl-1.0.1g.tar.gz

# tar Openssl-1.0.1g.tar.gz

# CD OPENSSL-1.0.1G

2. Confirm and install

The code is as follows:

#./config Shared Zlib

# make

# make Install

3. Connection

The code is as follows:

# Mv/usr/bin/openssl/usr/bin/openssl. Off

# Mv/usr/include/openssl/usr/include/openssl. Off

# Ln–s/usr/local/ssl/bin/openssl/usr/bin/openssl

# Ln–s/usr/local/ssl/include/openssl/usr/include/openssl

# echo "/usr/local/ssl/lib" >>/etc/ld.so.conf

# ldconfig-v

4. Verify

The code is as follows:

OpenSSL version

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.