gopherdata / gophernotes

The Go kernel for Jupyter notebooks and nteract.
MIT License
3.82k stars 265 forks source link

# runtime/cgo exec: "gcc": executable file not found in %PATH% #156

Closed tkalangi closed 5 years ago

tkalangi commented 5 years ago

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

cosmos72 commented 5 years ago

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:

If you already installed it, make sure the MinGW directory containing 'gcc' is in your %PATH%

tkalangi commented 5 years ago

there is no gcc in the mingw directory

cosmos72 commented 5 years ago

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...)

tkalangi commented 5 years ago

what should be the next process to do it

cosmos72 commented 5 years ago

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:

tkalangi commented 5 years ago

can i get the clarity of %PATH% mean

cosmos72 commented 5 years ago

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

tkalangi commented 5 years ago

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

cosmos72 commented 5 years ago

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

tkalangi commented 5 years ago

can you have an remote connection and help

cosmos72 commented 5 years ago

Sorry, no.

If you cannot solve with written English instructions, you could try asking a friend or colleague near to you.

nbxtruong commented 4 years ago

This one's for you @tkalangi http://tdm-gcc.tdragon.net/download