New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : Can't open lib 'ODBC Driver 13 for SQL Server' : file not found #3
Comments
I just tried the official install instructions from https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server on a clean MacOS El Capitan VM and the install succeeded with no issues and I was able use sqlcmd without any additional steps. |
Ok, somehow reinstalling with
|
I was able to get it to work, only after modifying the previously mentioned workaround to the location specified in |
|
Looks like the driver lib is owned by root, can you try running sqlcmd with sudo, as a check? And if that works try changing the owner to your user |
@hktalent This is the GitHub project for the ODBC driver on macOS, not Linux. |
After having spent a couple of hours, going through every stackover flow posts related to this and trying to fix my ODBC 13 version, which was running great until I did a brew update/upgrade for a diff project, I have given up and upgraded to ver 17. There is something about the latest release from MS that just does not make it back ward compatible to ver 13. But I guess it is 2021 and it might just be better to upgrade to ver 17 .. not fun when you have to upgrade the prods as well :( |
Installation
Problem
It seems
odbcinst
is looking forodbcinst.ini
file in theunixodbc
package folder which is basically empty. Correct location:Where the one which is loaded, it's empty:
Workaround
Notes
--without-registration
or--no-sandbox
added tobrew install msodbcsql
command doesn't take any effect.Related
The text was updated successfully, but these errors were encountered: