ghz
ghz copied to clipboard
ghz command not found
Hi, I am trying to test gRPC load test, Have installed ghz in Ubuntu 20.04 . getting ghz command not found even after following all the steps given in the installation instructions. Added path to .bashrc as well but still no luck. Are there any additional steps to befollowed other than the steps given in the git? .
Hi @vaishu950102 , Did you find the solution?
Hi @vaishu950102 , it's November 2022 now so things perhaps have changed.
I'm not aware of an apt-get ghz package (i.e. something that would apt-get install ghz).
However this worked for me, using docker to run Ubuntu:
#####################################################
# on my machine (macbook pro with docker installed) #
#####################################################
$ docker pull ubuntu:20.04
$ docker run --init --rm -it ubuntu:20.04
###############################
# inside the ubuntu container #
###############################
$ apt-get update
$ apt-get -y install wget
# got this URL from https://github.com/bojand/ghz/releases/
$ wget https://github.com/bojand/ghz/releases/download/v0.111.0/ghz-linux-x86_64.tar.gz
$ tar -xvf ghz-linux-x86_64.tar.gz
$ ./ghz --version
v0.111.0
Use go install github.com/bojand/ghz/cmd/ghz@latest
But first you need to install go
You then need to find where the installed binary for this package is present and use the path of that binary. Ideally in should be something like ../../bin/ghz. then you can use this path instead of ghz according to the documentation.