1

I installed Swift for Ubuntu using the latest toolchain available. At the time of writing, that version is 5.4.3. I downloaded it from https://swift.org/download/#releases

I installed many dependencies including python3 and python-dev-is-python3 as I have seen mongodb do in order to support Ubbuntu 20.04. However, attempting to run swift still prints,

/usr/share/swift/usr/bin/lldb: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory 

Does anyone have any suggestions as to what the problem may be?

1 Answer 1

3

The file you’ve downloaded is built for Python 3.7; Ubuntu 20.04 includes Python 3.8.

You need to download the Ubuntu 20.04 build of Swift, which is built for Python 3.8.

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.