編譯報錯的信息:
Error: unhandled exception: No SSL/TLS CA certificates found. [IOError]
Error: execution of an external program failed:
參考:
SSL/TLS certifictae issues with Nim 1.4.4?
https://forum.nim-lang.org/t/7551
Here on Windows 10, I decided like this:
I downloaded the file https://curl.se/ca/cacert.pem
I put it in a folder that is in %PATH or else in the same location as .exe
解決方法1:
人話說就是下載ca文件到環境變量或者和exe同目錄下就可以了。
解決方法2:
你電腦上裝了很多軟件,某些軟件里也是會帶有cacert.pem文件的。
可能也是兼容的。用everything搜索cacert.pem復制過來也是可行的。
解決方法3:
把nim語言版本換成1.4.0
這時候語言版本環境管理和切換工具的優勢和好處就體現出來了。
choosenim是nim語言的版本管理和切換工具,如果你有用來下載和安裝nim語言。
C:\>choosenim show
Selected: 1.4.8
Channel: No channel selected
Path: C:\Users\root\.choosenim\toolchains\nim-1.4.8
Versions:
#devel
#head
* 1.4.8
1.4.4
1.4.0
1.2.2
1.2.10
1.2.0
1.0.6
1.0.4
1.0.2
1.0.0
0.20.2
0.20.0
0.19.6
0.19.2
C:\>choosenim stable
Switched to Nim 1.4.0
如上,執行choosenim 1.4.0或者choosenim stable 就可以把語言環境版本換成較低的穩定版本。
好像看了一些奇怪的東西
浙公網安備 33010602011771號