- Share:
- Please consider sharing ?
- Published At:
- Dec 11th, 2020
- Tags:
- #ruby, #rails, #mysql, #gem
- Next:
- Ruby's Shovel Method: Digging Deeper
- Previous:
- Webpacker 6: Tutorial Setup
I’ve come across this error several times throughout my development career so I figured it was finally time to write it down.
Ld: library not found for -lssl. Ask Question Asked 4 years, 4 months ago. Crystal Lang: can't compile App with MySQL library on OSX El Capitan. Python - macOS 10.14 mysql 5.7 python 2.7 mysqlclient 1.3 pip install 出现 ld: library not found for -lssl 小G哥 2019-02-08T14:41:52Z 2 mysql - macOS brew 安装 mysql 5.7.
Scenario
Whenever I try to install certain versions of the
mysql2
gem in a Ruby on Rails application, I get the following error:Solution
In order to fix this issue on macOS, first make sure that you have
cmake
installed.Then you can install the gem via the following command:
Hope this helps save someone some time!
View All Articles
Solve the problem of pip installation mysqlclient failure on mac os
Systematic overview:
- mac os mojave 10.14.5
- python 2.7 virtualenvwrapper
- pip 2 virtualenvwrapper
First attempt:
After many attempts at search results on google, it can't be solved. The toilet looked at mysqlclient's documentation https://pypi.org/project/mysqlclient/ There are hints in the document:
Library Not Found For -lssl
Try pip install mysqlclient again or make an error, but this error is different, as follows:
Ld Library Not Found For Lssl
Search keywords again
pip install mysqlclient mac
Find this blog post. pipenv install mysqlclient on MacOSX - Shan Dou - Medium Referring to the blogger's operation, the correct method is obtained:
pip install mysqlclient mac
Find this blog post. pipenv install mysqlclient on MacOSX - Shan Dou - Medium Referring to the blogger's operation, the correct method is obtained:
The Right Way
Before that, make sure you install mysql-connector-c. The installation of mysql-connector-c is available for reference: mysqlclient · PyPI
The following results are obtained:
Then perform the following operations:
Ld Library Not Found For Lssl Mysql Server
Posted on Thu, 10 Oct 2019 17:16:36 -0400 by Daveyz1983