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 - sudo: systemctl: command not found
- How to know the version of Ubuntu
- [Fix] Ubuntu E: Unable to locate package sudo error
- How to install Apache Maven on Ubuntu
- Steps to Kill a Running Process in Ubuntu Linux
- How to know current Ubuntu Linux version via terminal command
- How to stop/start/restart apache server using command [Ubuntu]
- Fix: Ubuntu (Linux) - bash: sudo: command not found error
- Ubuntu: How to search for a package to install using apt in Terminal
- Fix: E: Command line option --installed is not understood in combination with the other options
- How to install Python on Ubuntu
- Ubuntu Linux: How to Login as root User
- Access Windows share folder in Ubuntu Device in Network
- Add a User as a Sudoer Using Ubuntu Linux Command Line Terminal
- Install Oh My Zsh on Ubuntu Docker complete steps
- Fix: Make makefile:31 Error 127 (GCC)
- [fix] openssl No such file or directory error C++
- How to install zsh shell on Ubuntu
- Install Golang (Go) on Ubuntu
- Ubuntu Linux: Unzip a zip file using Terminal
- Where are Environment Variables stored in Ubuntu
- apt-get list --installed packages in Ubuntu Linux
- Ubuntu: List all Installed Packages using apt
- Quick steps to install Nginx on Ubuntu Linux
- How to kill service running on a port on Ubuntu Linux
More Posts:
- Python: If Else Statements in One Single Line - Python
- Replace new line with comma in Sublime Text Editor - Sublime-Text
- Programmatically check if Facebook is installed on Android device - Android
- How to Toggle Dark and Light Mode on macOS Sonoma 14 - MacOS
- How to install Anaconda on Mac (M1/M2 Mac) - Python
- How to ls command to output one entry per line [macOS/Linux/Bash] - Linux
- Grep Alternative for Windows CMD or PowerShell: findstr - Windows
- How to Run PowerShell Script as Administrator (Elevate) - Powershell