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.67k stars 387 forks source link

CLI is not working #341

Open hadooping opened 4 years ago

hadooping commented 4 years ago

➜ ~ ponzu zsh: command not found: ponzu

hadooping commented 4 years ago

After installing Ponzu, CLI is not working

➜ ~ go get -u github.com/ponzu-cms/ponzu/... ➜ ~ ➜ ~ ➜ ~ ponzu zsh: command not found: ponzu

khozaei commented 4 years ago

Please run the command below in terminal and then use ponzu

export PATH=`go env GOPATH`/bin:$PATH
hadooping commented 4 years ago

Thanks @khozaei but this is not working.

make0x20 commented 4 years ago

Hi,

Can confirm that the command is not working for me either after running go get..

Any ideas on any other steps to try?

Thanks

dmitridb commented 4 years ago

Hi,

Can confirm that the command is not working for me either after running go get..

Any ideas on any other steps to try?

Thanks

$ echo $SHELL $ echo $PATH $ echo $GOPATH

what do these say for you?

make0x20 commented 4 years ago

$SHELL /usr/bin/zsh

$PATH /home/tim/.nvm/versions/node/v12.13.1/bin:/home/tim/go/bin:/usr/local/go/bin/:/home/tim/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/tim/Development/Bash

$GOPATH /home/tim/go

dmitridb commented 4 years ago

Try running it from bash instead (making sure necesary path is the same)

make0x20 commented 4 years ago

Running it from bash did not work for me either but I did refer to https://github.com/ponzu-cms/ponzu/issues/342 issue.

I checkedout to v11.x branch on github.com/blevesearch/zap locally and ran go get -u github.com/ponzu-cms/ponzu/... again. That seemed to make it work.

hadooping commented 4 years ago

Same case, not sure if this is supported, really frustrating.

dmitridb commented 4 years ago

Yeah well all this $GOPATH stuff was deprecated along with the changes to the module system, so this entire project needs a fix to that end. I'm spending some of my spare time trying to figure out how to best accomplish this. If you get a better idea of how to do this before I do lemme know because all I got was a big shrug from @nilslice

dmitridb commented 4 years ago

It's been hooped since august 2019 with go 1.13

dmitridb commented 4 years ago

If you hope to understand further this goes into pretty complete details by the way https://github.com/golang/go/wiki/Modules

sysfu commented 4 years ago

@dmitridb I'm stuck getting ponzu to install using the fish shell. If you want any help testing the codebase updates lmk. Also curious if you've seen any interest or signs of life from @apilayer. I sent an email to support@apilayer.com and received and auto-responder, but no signs up human life yet.

pavelkrolevets commented 4 years ago

Running it from bash did not work for me either but I did refer to #342 issue.

I checkedout to v11.x branch on github.com/blevesearch/zap locally and ran go get -u github.com/ponzu-cms/ponzu/... again. That seemed to make it work.

This worked for me. Also manually added to github.com/blevesearch/zap folders v12, v13, v14 and unzip there from zap releases axives.