diff --git a/README.md b/README.md index ef69b313..c73c0595 100644 --- a/README.md +++ b/README.md @@ -24,13 +24,16 @@ pip install mssql-python **Linux:** mssql-python can be installed with [pip](http://pypi.python.org/pypi/pip) ```bash # For Alpine -apk add libtool krb5-libs +apk add libtool krb5-libs krb5-dev -# For Debian/Ubuntu -apt-get install -y libltdl7 +# For Debian/Ubuntu +apt-get install -y libltdl7 libkrb5-3 libgssapi-krb5-2 # For RHEL -dnf install -y libtool-ltdl +dnf install -y libtool-ltdl krb5-libs + +# For SUSE +zypper install -y libltdl7 libkrb5-3 libgssapi-krb5-2 pip install mssql-python ``` diff --git a/mssql_python/pybind/ddbc_bindings.cpp b/mssql_python/pybind/ddbc_bindings.cpp index 8a88688a..775c3cd5 100644 --- a/mssql_python/pybind/ddbc_bindings.cpp +++ b/mssql_python/pybind/ddbc_bindings.cpp @@ -725,11 +725,7 @@ DriverHandle LoadDriverOrThrowException() { DriverHandle handle = LoadDriverLibrary(driverPath.string()); if (!handle) { LOG("Failed to load driver: {}", GetLastErrorMessage()); - // If this happens in linux, suggest installing libltdl7 - #ifdef __linux__ - ThrowStdException("Failed to load ODBC driver. If you are on Linux, please install libltdl7 package."); - #endif - ThrowStdException("Failed to load ODBC driver. Please check installation."); + ThrowStdException("Failed to load the driver. Please read the documentation (https://github.com/microsoft/mssql-python#installation) to install the required dependencies."); } LOG("Driver library successfully loaded.");