0

我已按照 github 存储库中概述的有关如何安装 swift-for-tensorflow(CPU 版本)的说明进行操作,并且 swiftREPL最初可以工作,但也会引发这些警告;

error: ld-2.27.so 0x7fffffff0005c564: adding range [0x1464a-0x146ba) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
error: ld-2.27.so 0x7fffffff0005c564: adding range [0x146d0-0x146d6) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
error: ld-2.27.so 0x7fffffff0005c5c5: adding range [0x1464a-0x146ba) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
error: ld-2.27.so 0x7fffffff0005c5c5: adding range [0x146d0-0x146d6) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message

但是,当我退出终端(Ubuntu 18.04)并重新打开时,运行 swift 不会返回 REPL。

当我最初尝试安装 swift(在 s4tf 之前)时,上述情况仍然出现,这意味着它可能是 swift 的问题。

当前解决方案: 我目前必须添加环境的路径。每次我打开终端以使用 REPL。

  • 操作系统:Ubuntu 18.04.3 LTS(64 位)

任何对如何进行此操作有线索的人。

4

1 回答 1

0

这可能是由于问题SR-8690造成的,这通常会影响 Ubuntu 上的 Swift。删除 libc6-dbg ( sudo apt remove libc6-dbg) 可清除错误。

于 2019-12-20T09:04:48.920 回答