@@ -24,7 +24,30 @@ Read more at:
2424
2525## Getting Started
2626
27- ### Prerequisites
27+ ### Installing on Debian and Ubuntu
28+
29+ Pre-compiled binaries are available for these platforms from the packages.redis.io Redis APT
30+ repository. To configure this repository, use the following steps:
31+
32+ ```
33+ sudo apt install lsb-release curl gpg
34+
35+ curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
36+
37+ echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
38+
39+ sudo apt-get update
40+ ```
41+
42+ Once configured, to install memtier_benchmark use:
43+
44+ ```
45+ sudo apt-get install memtier-benchmark
46+ ```
47+
48+ ### Installing from source
49+
50+ #### Prerequisites
2851
2952The following libraries are required for building:
3053
@@ -39,44 +62,21 @@ The following tools are required
3962* GNU make
4063* GCC C++ compiler
4164
42- #### CentOS 6.x
65+ #### CentOS/Red Hat Linux 7 or newer
4366
44- On a CentOS 6.x system, use the following to install prerequisites:
67+ Use the following to install prerequisites:
4568```
46- # yum install autoconf automake make gcc-c++
47- # yum install pcre-devel zlib-devel libmemcached-devel libevent-devel openssl-devel
69+ $ sudo yum install autoconf automake make gcc-c++ \
70+ pcre-devel zlib-devel libmemcached-devel libevent-devel openssl-devel
4871```
4972
50- CentOS 6.4 ships with older versions of libevent, which must be manually built
51- and installed as follows:
52-
53- To download, build and install libevent-2.0.21:
54- ```
55- $ wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
56- $ tar xfz libevent-2.0.21-stable.tar.gz
57- $ pushd libevent-2.0.21-stable
58- $ ./configure
59- $ make
60- $ sudo make install
61- $ popd
62- ```
63-
64- The above steps will install into /usr/local so it does not confict with the
65- distribution-bundled versions. The last step is to set up the
66- PKG_CONFIG_PATH so configure can find the newly installed library.
67-
68- ```
69- $ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}
70- ```
71-
72- Then proceed to follow the build instructions below.
73-
7473#### Ubuntu/Debian
7574
76- On Ubuntu/Debian distributions, simply install all prerequisites as follows :
75+ Use the following to install prerequisites:
7776
7877```
79- # apt-get install build-essential autoconf automake libpcre3-dev libevent-dev pkg-config zlib1g-dev libssl-dev
78+ $ sudo apt-get install build-essential autoconf automake libpcre3-dev \
79+ libevent-dev pkg-config zlib1g-dev libssl-dev
8080```
8181
8282#### macOS
@@ -94,7 +94,7 @@ tweak the `PKG_CONFIG_PATH` environment variable:
9494PKG_CONFIG_PATH=/usr/local/opt/openssl@3.0/lib/pkgconfig ./configure
9595```
9696
97- ### Building and installing
97+ #### Building and installing
9898
9999After downloading the source tree, use standard autoconf/automake commands:
100100
0 commit comments