Skip to content

Commit 441788f

Browse files
authored
Update ubuntu-jammy.md
Starting with 8.2, the cmake step is required in Ubuntu 22.04 as well (copied from Ubuntu 20.04 instructions)
1 parent 0e496ad commit 441788f

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

content/operate/oss_and_stack/install/build-stack/ubuntu-jammy.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,21 @@ sudo apt-get install -y --no-install-recommends \
4646
libtool
4747
```
4848

49-
## 2. Download and extract the Redis source
49+
## 2. Install CMake
50+
51+
Install CMake using `pip3` and link it for system-wide access.
52+
53+
{{< warning >}}
54+
CMake version 3.31.6 is the latest supported version. Newer versions cannot be used.
55+
{{< /warning>}}
56+
57+
```bash
58+
pip3 install cmake==3.31.6
59+
sudo ln -sf /usr/local/bin/cmake /usr/bin/cmake
60+
cmake --version
61+
```
62+
63+
## 3. Download and extract the Redis source
5064

5165
The Redis source code is available from [the Redis GitHub site](https://github.com/redis/redis/releases). Select the release you want to build and then select the .tar.gz file from the **Assets** drop down menu. You can verify the integrity of these downloads by checking them against the digests in the [redis-hashes GitHub repository](https://github.com/redis/redis-hashes).
5266

@@ -69,7 +83,7 @@ tar xvf redis-<version>.tar.gz
6983
rm redis-<version>.tar.gz
7084
```
7185

72-
## 3. Build Redis
86+
## 4. Build Redis
7387

7488
Set the appropriate environment variables to enable TLS, modules, and other build options, then compile and install Redis:
7589

@@ -85,7 +99,7 @@ make -j "$(nproc)" all
8599

86100
This builds the Redis server, CLI, and any included modules.
87101

88-
## 4. (Optional) Verify the installation
102+
## 5. (Optional) Verify the installation
89103

90104
You can confirm that Redis has been built and installed successfully by checking the version:
91105

@@ -94,7 +108,7 @@ You can confirm that Redis has been built and installed successfully by checking
94108
./src/redis-cli --version
95109
```
96110

97-
## 5. Start Redis
111+
## 6. Start Redis
98112

99113
To start Redis, use the following command:
100114

@@ -117,7 +131,7 @@ module:name=vectorset,ver=1,api=1,filters=0,usedby=[],using=[],options=[]
117131
...
118132
```
119133

120-
## 6. (Optional) Install Redis to its default location
134+
## 7. (Optional) Install Redis to its default location
121135

122136
```
123137
cd /usr/src/redis-<version>

0 commit comments

Comments
 (0)