gohugoio/hugoBasicExample

Installing hugo on windows by cloning from github

SaulMagnusson opened this issue · 1 comments

Just wanted to mention that I recently re-installed windows 10, downloaded go, and tried the hugo install from github on the gohugo.io install page instructions and received the following error message:

# github.com/bep/gowebp/internal/libwebp
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%
# github.com/bep/golibsass/internal/libsass
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

so perhaps another comment might be usefully added to the installation instructions. I will attempt a solution and post back.

an installer for gcc can be found here: link
mingw64/bin folder needs to be added to the path

If gcc is still not available, you may need move the install of mingw to a filepath with no spaces i.e. (Program Files)