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) ...
- Install Oh My Zsh on Ubuntu Docker complete steps
- Installing Home-brew on Ubuntu
- Install Golang (Go) on Ubuntu
- Install specific JRE on Ubuntu using apt
- How to stop/start/restart apache server using command [Ubuntu]
- How to install zsh shell on Ubuntu
- Quick steps to install Nginx on Ubuntu Linux
- How to know current Ubuntu Linux version via terminal command
- Add new user in Ubuntu Linux using Terminal Command
- Fix Ubuntu /bin/sh: 1: zsh: not found error
- How to install Python on Ubuntu
- [Fix] Ubuntu E: Unable to locate package sudo error
- How to stop MongoDB Server running on Ubuntu
- Install postgres Client using apt-get command
- How to kill service running on a port on Ubuntu Linux
- [fix] openssl No such file or directory error C++
- Fix - sudo: systemctl: command not found
- Access Windows share folder in Ubuntu Device in Network
- Add or remove users from sudo group - Ubuntu
- Quickly install Apache Server on Ubuntu Linux
- Fix: Ubuntu (Linux) - bash: sudo: command not found error
- How to download and install macOS 13 Ventura - MacOS
- How to clear Mac Terminal screen - MacOS
- [Solved] com.sun.xml.ws.transport.http.servlet.WSServletContextListener ClassNotFoundException - Java
- How to change the name of your Mac running on macOS Ventura 13 - MacOS
- Install and Run Cassandra on Docker Desktop - Docker
- Channel 50 SMSes received every few minutes Android Phones - Android
- How to create a SharePoint list from an existing list with same columns, views, formatting, data - SharePoint
- Android: Save Data in local Db using Android Room - Android