Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 29468  / 3 Years ago, mon, august 16, 2021, 8:25:13

I'm trying to work with Boost:asio to establish a SSL connection.



Now, my compiler says, it can't find openssl/conf.h



I'd like to know where this path is and how to fix this problem.



Thanks in advance.


More From » c++

 Answers
7

In my path, it is /usr/include/openssl/conf.h, and we can query dpkg to find the package that it comes from with:



dpkg -S /usr/include/openssl/conf.h


which gives the result:



libssl-dev: /usr/include/openssl/conf.h


Therefore you must run



sudo apt-get install libssl-dev


in order to get the development files for the program.



If you already have it installed in a non-standard location, you can export that into the build environment with



export LD_LIBRARY_PATH=/location/of/lib


You can also use the build-dep command to install all the necessary files for a particular program, e.g.



sudo apt-get build-dep openssl

[#34518] Tuesday, August 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
itchlos

Total Points: 486
Total Questions: 115
Total Answers: 110

Location: Macau
Member since Fri, Apr 28, 2023
1 Year ago
;