I try to install Swift 4 on bash on Ubuntu on Windows 10
My version of Ubuntu: me@DESKTOP:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial
me@DESKTOP:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial
I did apt-get upgrade
and apt-get update
I follow Linux steps here: to install Swift 4
Eventually I end up with the error: me@DESKTOP:~$ swift /home/me/swift4/swift-4.0.2-RELEASE-ubuntu16.04/usr/bin/lldb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
I have python2 installed: me@DESKTOP:~$ python2 --version Python 2.7.12
I wonder how to make it works.
Installing libpython2.7
successfully resolves the error
$ apt-get install libpython2.7
However it still failed to launch the swift repl due to kernel permissions issue .
Using docker image (or Virtual Box like OP) is a better way to go.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.