ponzu-cms / ponzu

Headless CMS with automatic JSON API. Featuring auto-HTTPS from Let's Encrypt, HTTP/2 Server Push, and flexible server framework written in Go.
https://docs.ponzu-cms.org
BSD 3-Clause "New" or "Revised" License
5.7k stars 383 forks source link

-su: ponzu: command not found #278

Closed ghost closed 6 years ago

ghost commented 6 years ago

Tried installing it on Debian 9 stretch This is my go env output, I am new to go so please lmk what am I doing wrong


GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/work/bin"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
nanohard commented 6 years ago

Your GOPATH looks wrong, unless you're dir structure looks like /root/work/bin/src/github.com/ponzu-cms/ponzu and /root/work/bin/bin/ponzu. The latter is what you need to run the command ponzu, and GOPATH/bin would also need to be in your shell's PATH env var. If you can run /root/work/bin/bin/ponzu then it's just missing from your shell PATH.

nanohard commented 6 years ago

Give this a read: http://www.ryanday.net/2012/10/01/installing-go-and-gopath/

Closing the issue; not related to ponzu. For further assistance please reach out via another source, maybe Slack.

ghost commented 6 years ago

Fixed it because I found it