Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README. #254

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,30 @@ Read more at:

## Getting Started

### Prerequisites
### Installing on Debian and Ubuntu

Pre-compiled binaries are available for these platforms from the packages.redis.io Redis APT
repository. To configure this repository, use the following steps:

```
sudo apt install lsb-release curl gpg

curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg

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

sudo apt-get update
```

Once configured, to install memtier_benchmark use:

```
sudo apt-get install memtier-benchmark
```

### Installing from source

#### Prerequisites

The following libraries are required for building:

Expand All @@ -39,44 +62,21 @@ The following tools are required
* GNU make
* GCC C++ compiler

#### CentOS 6.x
#### CentOS/Red Hat Linux 7 or newer

On a CentOS 6.x system, use the following to install prerequisites:
Use the following to install prerequisites:
```
# yum install autoconf automake make gcc-c++
# yum install pcre-devel zlib-devel libmemcached-devel libevent-devel openssl-devel
$ sudo yum install autoconf automake make gcc-c++ \
pcre-devel zlib-devel libmemcached-devel libevent-devel openssl-devel
```

CentOS 6.4 ships with older versions of libevent, which must be manually built
and installed as follows:

To download, build and install libevent-2.0.21:
```
$ wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
$ tar xfz libevent-2.0.21-stable.tar.gz
$ pushd libevent-2.0.21-stable
$ ./configure
$ make
$ sudo make install
$ popd
```

The above steps will install into /usr/local so it does not confict with the
distribution-bundled versions. The last step is to set up the
PKG_CONFIG_PATH so configure can find the newly installed library.

```
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}
```

Then proceed to follow the build instructions below.

#### Ubuntu/Debian

On Ubuntu/Debian distributions, simply install all prerequisites as follows:
Use the following to install prerequisites:

```
# apt-get install build-essential autoconf automake libpcre3-dev libevent-dev pkg-config zlib1g-dev libssl-dev
$ sudo apt-get install build-essential autoconf automake libpcre3-dev \
libevent-dev pkg-config zlib1g-dev libssl-dev
```

#### macOS
Expand All @@ -94,7 +94,7 @@ tweak the `PKG_CONFIG_PATH` environment variable:
PKG_CONFIG_PATH=/usr/local/opt/openssl@3.0/lib/pkgconfig ./configure
```

### Building and installing
#### Building and installing

After downloading the source tree, use standard autoconf/automake commands:

Expand Down
Loading