Ld Library Not Found For Lssl Mysql

Install Python MySQLClient on M1 Mac

tags: pythonmacm1mysqlclientmysql

I am trying to install the mysql-python library in Python 2. Lssl -lcrypto -o build/lib.macosx-10.13-intel-2.7/mysql.so ld: library not found for -lssl clang.

The following records how to solve the installation Python on the M1 Macmysqlclient Failure problem.

If you see linker problems, such as ld: library not found for -lssl (this usually means you need to install the development package for libssl), you may need to set some (or all) of those environment variables. ※(私の環境にはmysql@5.6入ってなかったので)結局のところmysql@5.6を入れれば解決したのかも。 なのだけど、わたしがいったんコケを解消した方法はmysql2の下記のissueにあった方法。 ld: library not found for -lssl after Mac OS Sierra upgrade #795.

Installation process

The installation command:

Installmysqlclient The following problem will appear:

This problem can be installed locallymysql To resolve:

For

According to the first installation failure, the second installation is performed:

Then try installingmysqlclient The following problems occurred again:

PassSee content 1Know that I need to installzstd

Finishzstd Try installationmysqlclient, But still that errorld: library not found for -lThen bySee content 2 I know that I can passenv Set the environment variable to specify the location of the dependency library:

Similar questions were found:

InSee content 2 I can know that I need to install it.openssl

In confirmation already installedopenssl After, try to installmysqlclientI found that the problem is still not solved, then pass it againenv Set upopenssl Dependent library location:

It is successfully installed here.mysqlclient

Reference

Intelligent Recommendation

Recently encountered a problem, mysqlclient library cannot be installed on Windows10 Python At this time, you need to download the .whl file for installation. First go to this website to download the ...

Python compile and install mysqlclient

After the local database is changed to MariaDB, Python uses mysqlclient to connect to the database. solve https://exiz.org/20171211141362...

Install mysqlclient To enable python to operate mysql, you need MySQLdb driver, which is an indispensable module for python to operate mysql. Install using pip test The test is very simple, che...

Ld Library Not Found For Lssl

How to install PYTHON Barcode SDK with PIP on Apple M1 Mac

DynamSoft Barcode Reader SDK A multi-function barcode read control, you can embed the barcode reading feature to the web or desktop application with only a few lines of code. This saves monthly develo...

background: Just a small white in MAC M1, installing Flask for a few days, I hope to solve your problem. The MAC comes with a Python2.7 environment, downloaded the Python 3.7 community version, so the...

More Recommendation

Library

M1 chip mac install office

Xiao Bian is a fan of Apple's brains, and has been using Apple's mac system for photo editing for many years! Is a loyal mac fan. Just in November, Apple released a new Mac series based on the Apple S...

Introduction Homebrew is an excellent tool for managing software packages on Mac. It is divided into two versions: X86 architecture and ARM architecture. Because our computer is an M1 chip, we give pr...

Ld Library Not Found For Lssl Mysql Download

M1 Mac Quickly Install HomeBrew

Library Not Found For -lssl

Switching terminal The terminal of M1 is -zsh There will be some other problems in installing homebrew, so it is changed here to bash. Enter Bash directly in the terminal: Download the official instal...

Mac M1 Docker Install Redis 1, redis mirror drawn, latest version of mirror Start Docker, turn on the terminal input command: Docker Pull Redis: Latest patient is waiting to take. 2, check if local mi...

Mac, M1 how to install Maven

Ld Library Not Found For Lssl Mysql Command

Mac Mac installation Maven 1, install maven via Homebrew Set an environment variable Method 2 Download Maven Package directly 1, install maven via Homebrew Can't find command Here, you need to configu...