SSL Header file issue #include <openssl/ssl.h>

Hi All,

I am using Pocket beaglebone, Debian 9.2, Ethernet W5500-SPI1, Cross compiler “arm-cortexa8-linux-gnueabihf-gcc”

I want SSL TCP communication with server IP (49.248.XX.XX).

I am able to communicate with server without SSL.

But, for SSL I am adding header file

#include <openssl/ssl.h>
#include <openssl/err.h>

and after adding this header file when I compile code it is showing error

“fatal error: openssl/ssl.h: No such file or directory”

I don’t know what is happening and how to resolve this.


says to install:


have you done that?


Yes, I have done installation already.

Snippet given below.

dipak@dipak-desktop:~$ sudo apt-get install libssl-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
libssl-dev is already the newest version.
The following packages were automatically installed and are no longer required:
account-plugin-windows-live libllvm3.5 libntdb1 libupstart1
linux-headers-3.16.0-30 linux-headers-3.16.0-30-generic
linux-image-3.16.0-30-generic linux-image-4.4.0-104-generic
linux-image-extra-3.16.0-30-generic linux-image-extra-4.4.0-104-generic
linux-image-generic-lts-xenial python-ntdb thermald
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.