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
#### **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