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