Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

statik: Command not found #67

Open
SynergyNodes opened this issue May 1, 2019 · 2 comments
Open

statik: Command not found #67

SynergyNodes opened this issue May 1, 2019 · 2 comments

Comments

@SynergyNodes
Copy link

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

@dolmen
Copy link
Contributor

dolmen commented May 2, 2019

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.

@sknightq
Copy link

sknightq commented Aug 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants