Closed thorstenkampe closed 4 years ago
@thorstenkampe what OS are you using to install mssql-cli?
@ellbosch I'm using Ubuntu 18.04
As of fairly recently we've published a version to apt-get that should work on Ubuntu 18.04. Best to uninstall mssql-cli first using pip3 uninstall mssql-cli
and then follow these instructions:
# Installs mssql-cli from Packages.Microsoft
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
# Use for pulling from prod channel
RUN apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod
RUN apt-get update
RUN apt-get install -y mssql-cli
# Installs missing requirements
RUN apt-get install -y -f
Please let me know if this resolves your problem.
Sorry, the packages creates
[...]
File "/mssql-cli/lib/python3.6/site-packages/terminaltables/terminal_io.py", line 3, in <module>
import ctypes
File "/mssql-cli/lib/python3.6/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: libffi.so.6: cannot open shared object file: No such file or directory
Interesting bug there... can you pass along the response you get for calling arch
in the command line?
FYI—we bundle our own Python version with apt-get and yum packages to prevent potential conflicts with Python dependencies downloaded elsewhere. There may be some issues if you attempt a purist Python installation on Linux.
I have to correct myself: the distribution is not 18.04 but 19.10, the latest version of Ubuntu.
I guess I have to wait until 20.04 becomes supported.
Sorry @thorstenkampe, we don't support 19.10 at this time. Closing this issue.
All other Python scripts installed via pip in /usr/local/bin refer to python3[.8].