@@ -24,7 +24,30 @@ Read more at:
24
24
25
25
## Getting Started
26
26
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
28
51
29
52
The following libraries are required for building:
30
53
@@ -39,44 +62,21 @@ The following tools are required
39
62
* GNU make
40
63
* GCC C++ compiler
41
64
42
- #### CentOS 6.x
65
+ #### CentOS/Red Hat Linux 7 or newer
43
66
44
- On a CentOS 6.x system, use the following to install prerequisites:
67
+ Use the following to install prerequisites:
45
68
```
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
48
71
```
49
72
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
-
74
73
#### Ubuntu/Debian
75
74
76
- On Ubuntu/Debian distributions, simply install all prerequisites as follows :
75
+ Use the following to install prerequisites:
77
76
78
77
```
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
80
80
```
81
81
82
82
#### macOS
@@ -94,7 +94,7 @@ tweak the `PKG_CONFIG_PATH` environment variable:
94
94
PKG_CONFIG_PATH=/usr/local/opt/[email protected] /lib/pkgconfig ./configure
95
95
```
96
96
97
- ### Building and installing
97
+ #### Building and installing
98
98
99
99
After downloading the source tree, use standard autoconf/automake commands:
100
100
0 commit comments