ghz icon indicating copy to clipboard operation
ghz copied to clipboard

ghz command not found

Open vaishu950102 opened this issue 3 years ago • 3 comments

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? .

vaishu950102 avatar Dec 28 '21 10:12 vaishu950102

Hi @vaishu950102 , Did you find the solution?

mikelam92 avatar Aug 25 '22 18:08 mikelam92

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

guy4261 avatar Nov 13 '22 09:11 guy4261

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.

akashd11 avatar Jul 13 '23 13:07 akashd11