Mongoc driver installation linking with specific openssl 3rd party

68 views
Skip to first unread message

hlsy...@gmail.com

unread,
Mar 12, 2018, 11:52:36 AM3/12/18
to mongodb-user
Hello everyone,

I want to install last mongoc driver stable version 1.9.3 using my custom installation of openssl library that I have already builded before as a 3rd party.
But I don't find the right option for ./configure for specifying a custom openssl path, for example something like: ./configure --with-openssl=/path/to/custom/location --enable-ssl=openssl
But when I am doing that I have an error saying that I need to install openssl: "You must install the OpenSSL libraries and development headers to enable OpenSSL support.".
So it doesn't detect my custom path, how can I make that work ?

Thanks,

Hugo.






hlsy...@gmail.com

unread,
Mar 13, 2018, 11:16:15 AM3/13/18
to mongodb-user
Problem fixed setting environment variables SSL_LIBS and SSL_CFLAGS to the same values as in libssl.pc file with path updated.

So something like this:
SSL_LIBS='-L/my/custom/path/to/shared/objects -lssl -lcrypto' SSL_CFLAGS='-I/my/custom/path/to/public/headers' ./configure
Reply all
Reply to author
Forward
0 new messages