【问题标题】:swift repl not working in windows subsystem for linuxswift repl 在 linux 的 windows 子系统中不起作用
【发布时间】:2019-04-27 23:33:13
【问题描述】:

我使用 swift 网站上的说明在 Windows (WSSL) 上为 Ubuntu 18.04 安装了 Swift:https://swift.org/download/#using-downloads

好像是在识别版本,但是当我只是输入swift进入REPL时,它似乎卡住了,不退出终端就无法退出shell:

allen@LAPTOP-C6O7O7KR:~$ swift --version
Swift version 5.0.1 (swift-5.0.1-RELEASE)
Target: x86_64-unknown-linux-gnu
allen@LAPTOP-C6O7O7KR:~$ swift
let x = 5;
print(x)
;
exit
^C

:q
:q
exit
^C

任何想法为什么会发生这种情况?

【问题讨论】:

  • 你解决过这个问题吗?我也有同样的问题。
  • 还没有,如果我找到解决方案,我会在这里发布一些内容
  • 我也有同样的问题。
  • 一年后,同样的问题......

标签: swift ubuntu-18.04 windows-subsystem-for-linux


【解决方案1】:

我认为它与https://github.com/microsoft/WSL/issues/688 有关

ptrace(PTRACE_TRACEME, 0, 0, 0) = -1 EPERM (Operation not permitted)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-20
    • 1970-01-01
    • 1970-01-01
    • 2017-02-23
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 2021-08-30
    相关资源
    最近更新 更多