fragmenta / fragmenta-cms

A user-friendly CMS written in Go (golang)
http://fragmenta.eu
MIT License
586 stars 70 forks source link

Stuck on fresh installation of Fragmenta cms #25

Closed rahu431 closed 6 years ago

rahu431 commented 8 years ago

Im a new be for golang development, using windows 10 and my go Lang configuration setup as per the below details.

C:\work>go env set GOARCH=amd64 set GOBIN= set GOEXE=.exe set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows set GOPATH=c:\work set GORACE= set GOROOT=C:\Go set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64 set CC=gcc set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 set CXX=g++

set CGO_ENABLED=1

I can run any go example projects in local.

Installed fragmenta as instructed in http://fragmenta.eu/install

C:\work>go get -u github.com/fragmenta/fragmenta then use C:\work>fragmenta new cms testcms Getting this below error when i run this above line, am not sure why its ask me like this, please correct me, where am wrong. "17:50:01 You must create your project in $GOPATH/src" tried in this location to C:\work\src>fragmenta new cms testcms but same above message.

kennygrant commented 8 years ago

Hi, I think you're running into this bug, which affects windows installs, does that sound right:

https://github.com/fragmenta/fragmenta/issues/10

kalnode commented 7 years ago

To anyone having trouble with this. If you get a message "You must create your project in $GOPATH/src" then first check if your $GOPATH is defined. This is seperate from plain old $PATH. Use "echo $GOPATH". If it comes up blank, then you need to deal with that first before exe'ing fragmenta. To set gopath, use: "export GOPATH=$(go env GOPATH)". Confirm with "echo $GOPATH". Worked for me.

kennygrant commented 7 years ago

@TheMangoTrain thanks for this. Now that gopath is implicit sometimes, I should set up a default if it is not set.

kennygrant commented 6 years ago

Should be fixed now on windows.