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
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: