You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`sudo yum install python-devel mysql-devel` # Red Hat / CentOS
18
-
*`brew install mysql-connector-c` # macOS (Homebrew) (Currently, it has bug. See below)
18
+
*`brew install mysql-client` # macOS (Homebrew)
19
19
20
20
On Windows, there are binary wheels you can install without MySQLConnector/C or MSVC.
21
21
@@ -25,33 +25,6 @@ On Windows, there are binary wheels you can install without MySQLConnector/C or
25
25
26
26
`sudo yum install python3-devel ` # Red Hat / CentOS
27
27
28
-
#### **Note about bug of MySQL Connector/C on macOS**
29
-
30
-
See also: https://bugs.mysql.com/bug.php?id=86971
31
-
32
-
Versions of MySQL Connector/C may have incorrect default configuration options that cause compilation errors when `mysqlclient-python` is installed. (As of November 2017, this is known to be true for homebrew's `mysql-connector-c` and [official package](https://dev.mysql.com/downloads/connector/c/))
33
-
34
-
Modification of `mysql_config` resolves these issues as follows.
35
-
36
-
Change
37
-
38
-
```
39
-
# on macOS, on or about line 112:
40
-
# Create options
41
-
libs="-L$pkglibdir"
42
-
libs="$libs -l "
43
-
```
44
-
45
-
to
46
-
47
-
```
48
-
# Create options
49
-
libs="-L$pkglibdir"
50
-
libs="$libs -lmysqlclient -lssl -lcrypto"
51
-
```
52
-
53
-
An improper ssl configuration may also create issues; see, e.g, `brew info openssl` for details on macOS.
0 commit comments