[英]Install swift 4 on bash on Ubuntu on Windows 10
I try to install Swift 4 on bash on Ubuntu on Windows 10 我尝试在Windows 10的Ubuntu上的bash上安装Swift 4
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
我的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
我做了
apt-get upgrade
和apt-get update
I follow Linux steps here: to install Swift 4 我在这里遵循Linux步骤:安装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
最终我最终
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
了错误: 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
我已经安装了python2:
me@DESKTOP:~$ python2 --version Python 2.7.12
I wonder how to make it works. 我不知道如何使其工作。
Installing libpython2.7
successfully resolves the error 安装
libpython2.7
成功解决了该错误
$ apt-get install libpython2.7
However it still failed to launch the swift repl due to kernel permissions issue . 但是由于内核权限问题,它仍然无法启动swift repl。
Using docker image (or Virtual Box like OP) is a better way to go. 使用docker映像 (或像OP这样的Virtual Box)是更好的方法。
https://bugs.swift.org/browse/SR-2743 https://bugs.swift.org/browse/SR-2743
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.