faq How to install Redis in PadoGrid - padogrid/padogrid GitHub Wiki

How to install Redis in PadoGrid?

Redis OSS does not provide binary distributions. If you installed Redis using install_padogrid, you have downloaded a source code distribution from the Redis GitHub repo. You will need to build the distribution by running the make command. For example, if you downloaded Redis 7.0.2, then you would take the following steps.

cd ~/Padogrid/products/redis-7.0.2
make

That's all to it if all goes well. If it fails to build, then you probably need to install the missing development packages before trying it again.

macOS

On macOS, we found no issues building Redis.

Linux

On Linux, if you are not able to build Redis even after installing the required development packages, try compiling it against libc as follows. (This is documented at the Redis repo.)

make MALLOC=libc

PadoGrid Vagrant Pods

For Vagrant VMs in PadoGrid, you can build Redis using one of the VMs.

  1. Download Redis and inflate it in ~/Padogrid/products/linux/
  2. Create a pod with the products directory set to ~/Padogrid/products/linux/redis-<version>/
  3. Build the pod
  4. Login to the primary node, i.e., pnode.local
  5. Install development packages.
  6. Change directory to ~/products/linux/redis-<version>/
  7. Compile

Example:

# Interactively install Redis
install_padogrid -product redis-oss

# Assuming you have installed Redis v7.0.2, inflate the distribution in the
# directory that will be mounted in the VMs.
tar -C ~/Padogrid/products/linux ~/Padogrid/downloads/redis-7.0.2.tar.gz

# Create a pod non-interatively (-quiet) for ubuntu/bionic64 with Avahi enabled.
# The '-count 3' option is for creating 3 data nodes in addition to a primary node.
# Redis requires at least 3 nodes to form a cluster. That's without replicas.
# For replicas of 1, you would need 6 nodes.
create_pod -pod mypod -dir ~/Padogrid/products/linux \
           -box ubuntu/bionic64 -count 3 -avahi -quiet

# Build the pod
build_pod -pod mypod

# Login to pnode.local
switch_pod mypod
vagrant ssh

# Install development packages
sudo apt install make
sudo apt install make-guile
sudo apt install pkg-config

# Compile
cd ~/products/redis-7.0.2
make MALLOC=libc
⚠️ **GitHub.com Fallback** ⚠️