Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
6 changes: 1 addition & 5 deletions mssql_python/pybind/ddbc_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");

Expand Down
Loading