gohugoio / hugoBasicExample

MIT License
282 stars 280 forks source link

Installing hugo on windows by cloning from github #74

Closed SaulMagnusson closed 3 years ago

SaulMagnusson commented 3 years ago

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.

SaulMagnusson commented 3 years ago

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)