From 92cd53289376dbd1eff90a94b2810c4641205d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Kukr=C3=A1l?= Date: Thu, 31 May 2018 10:38:54 +0200 Subject: [PATCH] use metapackage for libmysqlclient-dev (#245) libmysqliclient-dev package isn't available in Debian (Stretch) anymore. It's better to use metapackage for installation because it is available in Ubuntu and Debian. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2262e9d..cd91383 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,11 @@ I hope this fork is merged back to MySQLdb1 like distribute was merged back to s You may need to install the Python and MySQL development headers and libraries like so: -* `sudo apt-get install python-dev libmysqlclient-dev` # Debian / Ubuntu +* `sudo apt-get install python-dev default-libmysqlclient-dev` # Debian / Ubuntu * `sudo yum install python-devel mysql-devel` # Red Hat / CentOS * `brew install mysql-connector-c` # macOS (Homebrew) (Currently, it has bug. See below) -On Windows, there are binary wheels you can install without MySQLConnector/C or MSVC. +On Windows, there are binary wheels you can install without MySQLConnector/C or MSVC. #### Note on Python 3 : if you are using python3 then you need to install python3-dev using the following command : @@ -31,21 +31,21 @@ See also: https://bugs.mysql.com/bug.php?id=86971 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/)) -Modification of `mysql_config` resolves these issues as follows. +Modification of `mysql_config` resolves these issues as follows. Change ``` # on macOS, on or about line 112: -# Create options +# Create options libs="-L$pkglibdir" libs="$libs -l " ``` -to +to ``` -# Create options +# Create options libs="-L$pkglibdir" libs="$libs -lmysqlclient -lssl -lcrypto" ```