我已经按照github存储库中的说明按照有关如何安装swift-for-tensorflow(CPU-version)的说明进行操作,而swift REPL
最初会起作用,但还会引发这些警告。
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-bit)
任何对如何执行此操作都有线索的人。
最佳答案
这可能是由于问题SR-8690引起的,这通常会在Ubuntu上影响Swift。删除libc6-dbg(sudo apt remove libc6-dbg
)将清除错误。
关于swift - “非持久性” S4TF安装,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/59250779/