# runtime/cgo exec: "gcc": executable file not found in %PATH%
tkalangi opened this issue · 12 comments
the error has been occured in window 10 home edition
after executeing the below command
REM Download w/o building.
go get -d -u github.com/gopherdata/gophernotes
cd %GOPATH%\src\github.com\gopherdata\gophernotes\zmq-win
REM Build x64 version.
build.bat amd64
after this the above error is displayed
Hi,
you also need the 'gcc' C compiler from to build gophernotes. The README.md gives the following instructions to install it on Windows:
Make sure you have the MinGW toolchain:
- MinGW-w64, for 32 and 64 bit Windows
- MinGW Distro for 64 bit Windows only
If you already installed it, make sure the MinGW directory containing 'gcc' is in your %PATH%
there is no gcc in the mingw directory
That's really strange, the purpose of MinGW is to provide the GNU C and C++ compilers 'gcc.exe' and 'g++.exe' on Windows, together with tools needed for C/C++ development (linker, debugger...)
what should be the next process to do it
It's a long time since I last used MinGW...
I don't remember the detailed steps. I hope you followed http://mingw.org/wiki/Getting_Started carefully.
I noticed two significant steps in the link above:
mingw-get install gcc
- wheremingw-get
should be a command-line alternative to the more user-friendly graphical installer- the Environment Settings paragraph, describing how to update %PATH%
can i get the clarity of %PATH% mean
If your question is "what is %PATH% ?" then I can only point you to
https://en.wikipedia.org/wiki/PATH_(variable)
hopefully there is also an accurate translation in your native language
ok then should i install these
Make sure you have the MinGW toolchain:
MinGW-w64, for 32 and 64 bit Windows
MinGW Distro for 64 bit Windows only
in path or in os directory
No, you cannot install MinGW-w64 or MinGW in Windows path:
they are usually installed in C:\MinGW
, then you need to update the environment variable %PATH%
as described in http://mingw.org/wiki/Getting_Started
This is not specific to gophernotes, a MinGW forum could better help you - see http://www.mingw.org/wiki/Ask_for_help
can you have an remote connection and help
Sorry, no.
If you cannot solve with written English instructions, you could try asking a friend or colleague near to you.
This one's for you @tkalangi
http://tdm-gcc.tdragon.net/download