Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Installation steps for redis (version redis-5.0.2)

Shulou Source: shulou.com Published: 2022-06-03 07:52:57 11月23日 Update

Linux version

1. Extract redis-5.0.2.tar.gz file

2. Enter the redis directory after decompression. When executing the make installation command, an installation error is prompted (the gcc command is not found, and gcc needs to be installed).

Solution 1:

Installation via CD yum source (making CD yum source articles)

yum install gcc-c++

Solution 2: See the article on resolving dependencies (http://blog.csdn.net/ReadyYes/article/details/51848015)

a. Mount the CD first, mount /dev/sr0/mnt/cdrom

b. Enter the directory/mnt/cdrom/Packages and execute rpm installation commands in sequence.

rpm -ivh cpp-4.8.5-11.el7.x86_64.rpm

Find and install the cpp dependency libraries libmpc.so.3() and libmpfr.so.4(), and finally install cpp

rpm -ivh kernel-headers-3.10.0-514.el7.x86_64.rpm

rpm -ivh glibc-headers-2.17-157.el7.x86_64.rpm

rpm -ivh glibc-devel-2.17-157.el7.x86_64.rpm

rpm -ivh libgomp-4.8.5-11.el7.x86_64.rpm

rpm -ivh gcc-4.8.5-11.el7.x86_64.rpm

3. After installing gcc, enter the redis directory, you must first execute the make distclean command, and then execute the make command to install (the installation process is slow and you need to wait).

If you execute the make command directly, jemalloc.h does not have that file or directory error.

Finally, execute the make install command to complete the installation.

Tags: Commands directories CDs prompts files articles solutions errors versions two process sequence production steps Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker Microsoft NVidia Shulou Technology