2

Whenever I tried to use the sqlcmd command in my terminal im getting and error like "sqlcmd: error while loading shared libraries: libodbc.so.2: cannot open shared object file: No such file or directory"

1 Answer 1

3

It seems you didn't install the unixodbc-dev package which depends on the libodbc1 package and contains the missing shared library.

You can install it with

sudo apt update
sudo apt install unixodbc-dev

Related:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.