statik icon indicating copy to clipboard operation
statik copied to clipboard

statik: Command not found

Open SynergyNodes opened this issue 5 years ago • 2 comments

Hello,

I executed the following command

go get github.com/rakyll/statik

No errors after the above command. However, when I try the following command, I get the error. "statik: Command not found".

statik -src=/path/to/your/project/public

How do I solve this?

Regards, Harish

SynergyNodes avatar May 01 '19 12:05 SynergyNodes

Check your $PATH to see if contains $(go env GOPATH)/bin. In any case that's not an issue specific to statik but more general to your Go development environment.

dolmen avatar May 02 '19 17:05 dolmen

In Linux, I'm using following steps to solve it.

// 1.Get the GOPATH
go env
// 2.Open ~/.profile and add your GOPATH, if your GOPATH is "~/go-packages"
export=~/go-packages/bin:$PATH
// 3.Reload
source ~/.profile

sknightq avatar Aug 07 '20 06:08 sknightq