在 Windows 10 上的 Ubuntu 上的 bash 上安装 swift 4



我尝试在 Windows 10 上的 Ubuntu 上安装 Swift 4 on bash

我的 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

我做了apt-get upgradeapt-get update

我在这里遵循Linux步骤:安装Swift 4

最终我最终得到错误: 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

我安装了 python2: me@DESKTOP:~$ python2 --version Python 2.7.12

我想知道如何让它工作。

安装libpython2.7成功解决错误

$ apt-get install libpython2.7

但是,由于内核权限问题,它仍然无法启动快速 repl。
使用 docker 镜像(或像 OP 这样的虚拟盒子(是一种更好的方法。

参考

https://bugs.swift.org/browse/SR-2743

最新更新