美文网首页
Nim Error: cannot open file: /..

Nim Error: cannot open file: /..

作者: 夙小叶 | 来源:发表于2021-10-27 23:18 被阅读0次
截屏2021-10-27 23.08.27.png

Nim 安装 nimlsp 报错:

nimble install nimlsp

...
Error: cannot open file: /usr/local/Cellar/nim/1.6.0/nim/nimsuggest/nimsuggest.nim
截屏2021-10-27 23.11.45.png

解决:
因为需要用到 nim 的源码,brew 的安装方式不附带 nim 的源代码

要么使用 choosenim 安装 nim,要么下载 nim 的源代码,然后使用选项 -d:explicitSourcePath 指向源代码

nimble install -p:-d:explicitSourcePath:$path_to_nim nimlsp

nimble install -p:-d:explicitSourcePath:/tmp/nim-1.6.0 nimlsp

相关文章

网友评论

      本文标题:Nim Error: cannot open file: /..

      本文链接:https://www.haomeiwen.com/subject/azdmaltx.html