myProg.cpp:32:21: error: openssl/bio.h: No such file or directory
myProg.cpp:34:21: error: openssl/des.h: No such file or directory
myProg.cpp:36:21: error: openssl/pem.h: No such file or directory
myProg.cpp:37:21: error: openssl/rsa.h: No such file or directory
If you are trying to run C++ code that makes use of OpenSSL libraries on Ubuntu and you get the above errors, then you need to install the OpenSSL libssl-dev development package.
Command: apt-get install libssl-dev
Example:
# sudo apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libssl-dev
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
Need to get 1462 kB of archives.
After this operation, 7597 kB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 libssl-dev arm64 1.1.1f-1ubuntu2.12 [1462 kB]
Fetched 1462 kB in 2s (876 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libssl-dev:arm64.
(Reading database ... 20245 files and directories currently installed.)
Preparing to unpack .../libssl-dev_1.1.1f-1ubuntu2.12_arm64.deb ...
Unpacking libssl-dev:arm64 (1.1.1f-1ubuntu2.12) ...
Setting up libssl-dev:arm64 (1.1.1f-1ubuntu2.12) ...
More Posts related to Ubuntu,
- Fix: Ubuntu (Linux) - bash: sudo: command not found error
- Quick steps to install Nginx on Ubuntu Linux
- Add new user in Ubuntu Linux using Terminal Command
- How to know current Ubuntu Linux version via terminal command
- How to stop/start/restart apache server using command [Ubuntu]
- Fix - sudo: systemctl: command not found
- How to install zsh shell on Ubuntu
- [Fix] Ubuntu E: Unable to locate package sudo error
- Quickly install Apache Server on Ubuntu Linux
- Install specific JRE on Ubuntu using apt
- Fix Ubuntu /bin/sh: 1: zsh: not found error
More Posts:
- How to press shortcut CTRL + ALT + DEL on Windows Remote Desktop - HowTos
- Default speed of Marquee tag : SCROLLAMOUNT - Html
- Google YouTube Gmail down, not working worldwide - 503, 502, something went wrong error - News
- How to un-hide tab bar in notepad++ - NotepadPlusPlus
- WARNING: Python 2.7 is not recommended [macOS Big Sur] - MacOS
- -bash: startup.sh: command not found - Apache Tomcat 8 - Tomcat
- No connection available Use Connect-SPOService before running this CmdLet - SharePoint
- Remove Now Playing icon from macOS Big Sur Menu Bar - MacOS