. Advertisement .
..3..
. Advertisement .
..4..
I got the exec: “gcc”: executable file not found in %path% below:
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
Compilation finished with exit code 2
The following environment is used in my text:
Windows 10 is the operating system.
GoLand development tools were utilized as tools.
Version 1.17 of Golang
Tell me the cause and solution for the problem, please. Thank you very much.
The cause: Gcc compiler must be installed because it is lacking.
Solution:
You must decide whether to use a 64-bit or 32-bit operating system. The system is typically 64-bit and has been modified to x86_ 64.
Select a place, then wait while it is installed.
Add the recently installed bin folder above the system path variable by opening the system environment variable.