Skip to content

Commit b080cc2

Browse files
jnozscmethane
authored andcommitted
homebrew migrates mysql-connector-c to mysql-client (#401)
1 parent edeab30 commit b080cc2

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

README.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You may need to install the Python and MySQL development headers and libraries l
1515

1616
* `sudo apt-get install python-dev default-libmysqlclient-dev` # Debian / Ubuntu
1717
* `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)
1919

2020
On Windows, there are binary wheels you can install without MySQLConnector/C or MSVC.
2121

@@ -25,33 +25,6 @@ On Windows, there are binary wheels you can install without MySQLConnector/C or
2525

2626
`sudo yum install python3-devel ` # Red Hat / CentOS
2727

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.
54-
5528
### Install from PyPI
5629

5730
`pip install mysqlclient`

0 commit comments

Comments
 (0)