【nim语言】nim语言 1.4.8编译时SSL报错“No SSL/TLS CA certificates found” 解决方法。

编译报错的信息:
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
oot.choosenim	oolchains
im-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 就可以把语言环境版本换成较低的稳定版本。

好像看了一些奇怪的东西
原文地址:https://www.cnblogs.com/gayhub/p/15328076.html