Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up`ld: library not found for -lssl` after Mac OS Sierra upgrade #795
Comments
rietta
changed the title
ld: library not found for -lssl after Mac OS Sierra upgrade
`ld: library not found for -lssl` after Mac OS Sierra upgrade
Oct 17, 2016
This comment has been minimized.
This comment has been minimized.
The solution was: I really wish XCode would update without removing the command line tools every time without notice. |
rietta
closed this
Oct 17, 2016
This comment has been minimized.
This comment has been minimized.
Oh, glad you found it. Yeah, that's annoying every time. Maybe a specific check is in order? I wonder if |
This comment has been minimized.
This comment has been minimized.
swarajban
commented
Dec 8, 2016
Hm this didn't work for me still seeing same error |
This comment has been minimized.
This comment has been minimized.
rileytg
commented
Mar 17, 2017
This error occurred for me trying to install (posting this so hopefully future poor souls googling |
This comment has been minimized.
This comment has been minimized.
Prendo93
commented
Jun 28, 2017
I encountered this error when using |
added a commit
to r-dbi/RMariaDB
that referenced
this issue
Jul 24, 2017
This comment has been minimized.
This comment has been minimized.
mavishou
commented
Aug 4, 2017
@rietta saves my life... When the first time I try |
This comment has been minimized.
This comment has been minimized.
mastahyeti
commented
Aug 8, 2017
•
I have command line tools installed as well as Xcode 9. I tried reinstalling command line tools by
Update: I got it working after doing |
This comment has been minimized.
This comment has been minimized.
fusco
commented
Sep 2, 2017
exactly same error as @mastahyeti Even after making a: brew install openssl@1.1 |
This comment has been minimized.
This comment has been minimized.
fusco
commented
Sep 2, 2017
come be back to ruby 2.4.0 and all works fine. ps
|
This comment has been minimized.
This comment has been minimized.
saberworks
commented
Sep 19, 2017
@rietta thank you. I installed perl with homebrew and then kept getting this error message when trying to install DBD::mysql. After running |
This comment has been minimized.
This comment has been minimized.
dibowei
commented
Oct 16, 2017
Step 1.
Step 2.
|
This comment has been minimized.
This comment has been minimized.
shiviser
commented
Oct 23, 2017
I had upgraded from Sierra to High Sierra a couple of weeks back. I received this error when I tried to install mysqlclient. After running |
This comment has been minimized.
This comment has been minimized.
jlnr
commented
Feb 5, 2018
Changing the sudo gem install mysql2 -- --with-cflags=\"-I/usr/local/opt/openssl/include\" --with-ldflags=\"-L/usr/local/opt/openssl/lib\" |
mbutrovich
referenced this issue
Apr 3, 2018
Closed
Build fails due to : ld: library not found for -lssl #1256
This comment has been minimized.
This comment has been minimized.
TysonRV
commented
May 10, 2018
I had this error while trying to install the Thanks a lot for the info |
This comment has been minimized.
This comment has been minimized.
aHaydenLSS
commented
Jul 11, 2018
•
I've tried all of the above and nothing has worked. Please help! I think what is happening is the install is failing to find a mysql package. Specifically, one named -l-lpthread. See at the bottom of my error:
` |
This comment has been minimized.
This comment has been minimized.
TidbitSoftware
commented
Sep 8, 2018
•
Well this looks like a problem, |
This comment has been minimized.
This comment has been minimized.
markhallen
commented
Sep 28, 2018
Thank you @dibowei |
This comment has been minimized.
This comment has been minimized.
anthonybu
commented
Oct 16, 2018
Thank you very much @dibowei, same thing happened in OS X 10.14 Mojave, this fixed it. |
This comment has been minimized.
This comment has been minimized.
kigawas
commented
Oct 25, 2018
You can also try this on macOS
|
This comment has been minimized.
This comment has been minimized.
darkunter
commented
Oct 25, 2018
•
Could be a solution setting multiple paths like |
This comment has been minimized.
This comment has been minimized.
To fix for a manual gem install: brew install openssl
gem install mysql2 -- --with-opt-dir="$(brew --prefix openssl)" To fix for all bundle installs: brew install openssl
bundle config --global build.mysql2 --with-opt-dir="$(brew --prefix openssl)"
bundle install |
This comment has been minimized.
This comment has been minimized.
chapmajs
commented
Nov 17, 2018
This thread ranks highly in Google. For other people arriving here after trying to get mysql2 gem going on OS X 10.14 Mojave, this did it for me. Stuck it in |
This comment has been minimized.
This comment has been minimized.
sandeshdamkondwar
commented
Nov 22, 2018
Thank you so much, worked for me after all hit and tries. |
This comment has been minimized.
This comment has been minimized.
jbodah
commented
Dec 6, 2018
Mojave upgrade borked this for me. My libs post-upgrade (wiping xcode, reinstalling, yadayada):
exporting LIBRARY_PATH worked for me; reconfiguring bundler did not, |
This comment has been minimized.
This comment has been minimized.
ninjacn
commented
Dec 29, 2018
非常感谢 |
This comment has been minimized.
This comment has been minimized.
nafihnfh
commented
Dec 30, 2018
•
when i run |
This comment has been minimized.
This comment has been minimized.
spiderpug
commented
Jan 5, 2019
Same for me on Mojave, but this solution #795 (comment) worked fine |
This comment has been minimized.
This comment has been minimized.
sstawecki
commented
Jan 24, 2019
Posting this comment just to share my experience and help other people. |
rietta commentedOct 17, 2016
After upgrading to Sierra. Confirmed that OpenSSL and LibreSSL are installed through Homebrew. I'm continuing to troubleshoot.