Skip to content

Commit 29b55ac

Browse files
committed
Added macOS 13/14 page
1 parent 7888116 commit 29b55ac

File tree

7 files changed

+115
-31
lines changed

7 files changed

+115
-31
lines changed

content/operate/oss_and_stack/install/archive/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ You can install [Redis](https://redis.io/about/) or [Redis Stack](https://redis.
1717

1818
Here are the installation instructions:
1919

20-
* [Install Redis]({{< relref "/operate/oss_and_stack/install/install-redis" >}})
21-
* [Install Redis Stack]({{< relref "/operate/oss_and_stack/install/install-stack" >}})
20+
* [Install Redis]({{< relref "/operate/oss_and_stack/install/archive/install-redis" >}})
21+
* [Install Redis Stack]({{< relref "/operate/oss_and_stack/install/archive/install-stack" >}})
2222

2323
While you can install Redis or Redis Stack locally, you might also consider using Redis Cloud by creating a [free account](https://redis.com/try-free/?utm_source=redisio&utm_medium=referral&utm_campaign=2023-09-try_free&utm_content=cu-redis_cloud_users).

content/operate/oss_and_stack/install/build-stack/almalinux-8.md renamed to content/operate/oss_and_stack/install/build-stack/almalinux-rocky-8.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ To download the latest stable Redis release, run the following:
122122
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
123123
```
124124

125+
Extract the source:
126+
127+
```bash
128+
tar xvf redis.tar.gz
129+
```
130+
125131
## 5. Build Redis
126132

127133
Enable the GCC toolset and build Redis with support for TLS and modules:

content/operate/oss_and_stack/install/build-stack/almalinux-9.md renamed to content/operate/oss_and_stack/install/build-stack/almalinux-rocky-9.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ To download the latest stable Redis release, run the following:
120120
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
121121
```
122122

123+
Extract the source:
124+
125+
```bash
126+
tar xvf redis.tar.gz
127+
```
128+
123129
## 5. Build Redis
124130

125131
Enable the GCC toolset and compile Redis with TLS and module support:
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
categories:
3+
- docs
4+
- operate
5+
- stack
6+
- oss
7+
linkTitle: macOS 13 / macOS 14
8+
title: Build Redis Community Edition from source on macOS 13 (Ventura) and macOS 14 (Sonoma)
9+
weight: 50
10+
---
11+
12+
Follow the steps below to build Redis from source on a system running macOS 13 (Ventura) and macOS 14 (Sonoma).
13+
14+
## 1. Install homebrew
15+
16+
If Homebrew isn't already installed, follow the installation instructions on the [Homebrew home page](https://brew.sh).
17+
18+
## 2. Install required packages
19+
20+
```
21+
export HOMEBREW_NO_AUTO_UPDATE=1
22+
brew update
23+
brew install coreutils
24+
brew install make
25+
brew install openssl
26+
brew install llvm@18
27+
brew install cmake
28+
brew install gnu-sed
29+
brew install automake
30+
brew install libtool
31+
brew install wget
32+
```
33+
34+
## 3. Install Rust
35+
36+
Rust is required to build the JSON package.
37+
38+
```
39+
RUST_INSTALLER=rust-1.80.1-$(if [ "$(uname -m)" = "arm64" ]; then echo "aarch64"; else echo "x86_64"; fi)-apple-darwin
40+
wget --quiet -O ${RUST_INSTALLER}.tar.xz https://static.rust-lang.org/dist/${RUST_INSTALLER}.tar.xz
41+
tar -xf ${RUST_INSTALLER}.tar.xz
42+
(cd ${RUST_INSTALLER} && sudo ./install.sh)
43+
```
44+
45+
## 4. Download and extract the Redis source
46+
47+
The Redis source code is available from the [Download](https://redis.io/downloads) page. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes git repository](https://github.com/redis/redis-hashes).
48+
49+
Download a specific version of the Redis source code from GitHub. For example, to download version `8.0`:
50+
51+
```bash
52+
wget -O redis.tar.gz https://github.com/redis/redis/archive/refs/tags/8.0.tar.gz
53+
```
54+
55+
To download the latest stable Redis release, run the following:
56+
57+
```bash
58+
wget -O redis.tar.gz https://download.redis.io/redis-stable.tar.gz
59+
```
60+
61+
Extract the source:
62+
63+
```bash
64+
tar xvf redis.tar.gz
65+
```
66+
67+
## 5. Build Redis
68+
69+
```
70+
export HOMEBREW_PREFIX="$(brew --prefix)"
71+
export BUILD_WITH_MODULES=yes
72+
export BUILD_TLS=yes
73+
export DISABLE_WERRORS=yes
74+
PATH="$HOMEBREW_PREFIX/opt/libtool/libexec/gnubin:$HOMEBREW_PREFIX/opt/llvm@18/bin:$HOMEBREW_PREFIX/opt/make/libexec/gnubin:$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin:$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"
75+
export LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@18/lib"
76+
export CPPFLAGS="-I$HOMEBREW_PREFIX/opt/llvm@18/include"
77+
78+
mkdir -p build_dir/etc
79+
make -C redis-8.0 -j "$(nproc)" all OS=macos
80+
make -C redis-8.0 install PREFIX=$(pwd)/build_dir OS=macos
81+
```
82+
83+
## 6. (Optional) Verify the installation
84+
85+
Check the installed Redis server and CLI versions:
86+
87+
```bash
88+
build_dir/bin/redis-server --version
89+
build_dir/bin/redis-cli --version
90+
```
91+
92+
## 7. Start Redis
93+
94+
To start Redis, use the following command:
95+
96+
```bash
97+
export LC_ALL=en_US.UTF-8
98+
export LANG=en_US.UTF-8
99+
build_dir/bin/redis-server /path/to/redis.conf
100+
```

content/operate/oss_and_stack/install/build-stack/macos-13.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

content/operate/oss_and_stack/install/build-stack/macos-14.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

content/operate/oss_and_stack/install/build-stack/macos-15.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ weight: 40
1111

1212
Follow the steps below to build Redis from source on a system running macOS 15 (Sequoia).
1313

14-
Steps TBP.
14+
To be provided at a later date.

0 commit comments

Comments
 (0)