1
0
mirror of https://github.com/wg/wrk synced 2025-01-08 23:32:54 +08:00
10 Installing wrk on Linux
Elfranne edited this page 2021-02-15 11:01:46 +01:00

Prebuilt Packages

wrk is easy to install from packages, available on some platforms.

Install in CentOS / RHEL 6

yum install https://extras.getpagespeed.com/release-el6-latest.rpm
yum install wrk

Install in CentOS / RHEL 7

yum install https://extras.getpagespeed.com/release-el7-latest.rpm
yum install wrk

Install in Fedora 28+

dnf copr enable getpagespeed/wrk
dnf install wrk

Compilation

You may want to compile wrk if prebuilt packages are not available for your platform.

wrk needs openssl dev package and gcc/dev stack.

What follows is brief instructions on how to install wrk on Linux.

Ubuntu/Debian (clean box)

sudo apt-get install build-essential libssl-dev git unzip -y
git clone https://github.com/wg/wrk.git wrk
cd wrk
make
# move the executable to somewhere in your PATH, ex:
sudo cp wrk /usr/local/bin

The above installs build tools, open ssl dev libs (including headers), and git. Then uses git to download wrk and builds it from that.

CentOS / RedHat / Fedora

sudo yum groupinstall 'Development Tools'
sudo yum install -y openssl-devel git 
git clone https://github.com/wg/wrk.git wrk
cd wrk
make
# move the executable to somewhere in your PATH
sudo cp wrk /somewhere/in/your/PATH

Installs the build tools, open ssl dev libs (including headers), and git. Then uses git to download wrk and build.