-
Notifications
You must be signed in to change notification settings - Fork 623
Build fails due to : ld: library not found for -lssl #1256
Comments
Just Googling around, it seems like reinstalling the Command Line Tools is a common solution for this problem: https://groups.google.com/forum/#!topic/crystal-lang/tMcFSbvYRlA Those links recommend xcode-select --install, however I think that will install the latest version which isn't what you want. Try reinstalling 9.2 following the link from the Installation wiki. Out of curiosity, before you do that what is the output of "clang -v"? |
Thank you for the suggestion.
|
That version builds Peloton okay for me. It seems like wires are crossed on your system with respect to where to look for the SSL library. Apple rolled their own starting with El Capitan, but you likely have some OpenSSL packages installed via Homebrew as well that might be mixing things up if you symlinked them into other places. All I can suggest at this point is reloading your dyld cache... sudo update_dyld_shared_cache -force ...and perhaps checking for any weirdness with Homebrew with... brew doctor Beyond that it's tough to say why linking in the SSL library is failing on your machine. |
What the version of SSL installed on your machine? |
OpenSSL 1.0.2l 25 May 2017 |
The version seems fine. I think there is an issue with the path. Find the location of your current OpenSSL installation using |
I was finally able to build it after reinstalling Xcode command line tools (as suggested above), and after uninstalling anaconda and reinstalling python3. I still had to use the |
MacOS High Sierra v10.13.3
Xcode 9.2
Cmake and make directives:
I also suppressed a number of warnings as shown below. They were all of the same variety--the only difference being that each had a different template argument-- so I've only included one of them.
The text was updated successfully, but these errors were encountered: