0

I install Nim Lang but it not works. I get this errors, how can i fix? (I have completed the setup.)

Error: invocation of external compiler program failed. Sistem belirtilen dosayayi bulamiyor.
Additional info: "Requested command not found: \'gcc.exe -c  -w -fmax-errors=3 -mno-ms-bitfields   -I\"C:\\Program Files\\Nim Language\\lib\" -IC:\\Users\\SyTax\\Desktop -o C:\\Users\\Sytax\Desktop -o C:\\Users\\SyTax\\nimcache\\name_d\\stdlib_io.nim.c.o C:\\Users\\SyTax\\nimcache\\name_d\\stdlib_io.nim.c\'. OS error:" 2

Error; enter image description here

xbello
  • 7,223
  • 3
  • 28
  • 41
SyTax
  • 1
  • 2
    Hello, and welcome to stackoverflow. Might you please [edit] your question to include your error messages as **text** rather than as a screenshot? It's required here not to to use images for this purpose, see [*Discourage screenshots of code and/or errors*](https://meta.stackoverflow.com/a/307500) and [*Why not upload images of code on SO when asking a question*](https://meta.stackoverflow.com/a/285557) for why. *[How do I format my code blocks?](https://meta.stackexchange.com/q/22186)* may also help. – dbc Dec 24 '20 at 17:41
  • Even better, a [mcve] showing exactly how you generated the error would maximize your chances of getting a useful answer here. See: [ask]. – dbc Dec 24 '20 at 17:41

2 Answers2

1

Probably you only installed the first package from Nim's windows installation page. Note that there are other dependencies mentioned on that page. You may also need:

  • MingW compiler dependency, installed with finish.exe.
  • DLLs available on your system, like PCRE or OpenSSL, also available for download.

Alternatively you could try installing Nim using Scoop, which seems to be able to install both Nim and the required compiler.

Grzegorz Adam Hankiewicz
  • 7,349
  • 1
  • 36
  • 78
0

The Nim compiler creates C code, so to compile your code to binary and run, you should install a C compiler. The default is GCC. In linux and mac, it comes with the system, so I am assuming you are using windows.

I am not a Windos user, but AFAIK you neet to install mingw amd gcc

http://www.codebind.com/cprogramming/install-mingw-windows-10-gcc/

http://mingw.org/

g_lasso
  • 141
  • 8