Perfect-MongoDB icon indicating copy to clipboard operation
Perfect-MongoDB copied to clipboard

library not found for -lssl

Open jjjjjeffrey opened this issue 9 years ago • 2 comments

1111

2222

jjjjjeffrey avatar Jul 04 '16 06:07 jjjjjeffrey

I had this same issue. It was related to the Home Brew OpenSSL library being updated but the Mongo libraries not being updated to accommodate. Sadly, the Mongo .pc files include paths which have the OpenSSL version number in them, making them fragile when they get updated.

I needed to update the following file:

/usr/local/lib/pkgconfig/libmongoc-1.0.pc

and change the 'Libs' path such that it references the proper OpenSSL path:

-L/usr/local/Cellar/openssl/1.0.2h_1/lib

If I remember correctly, the old path had 1.0.2g in it.

kjessup avatar Jul 04 '16 14:07 kjessup

Sadly, when we install openssl use brew command, the old version of openssl was not provided. You know why? @kjessup

jjjjjeffrey avatar Jul 05 '16 00:07 jjjjjeffrey