Ilija Matoski

    ← Articles

    Compiling Redis Desktop Manager on Debian

    So I’ve used redis desktop manager in the past, but suddenly I can’t use it anymore it’s not compiling on debian, and there are no packages for the application. So I decided to find a way to to compile it on my machine, which uses Debian Stretch.

    So first we need to install some prerequisites so we can compile the application

    sudo apt-get install build-essential git libssh2-1-dev zlib1g zlib1g-dev cmake libssl-dev qt5-default automake libtool \
    libssl-dev libssh2-1-dev g++ libgl1-mesa-dev qtdeclarative5-dev qml-module-qtgraphicaleffects \
    qml-module-qtquick-controls qml-module-qtquick-dialogs qml-module-qtquick-extras \
    qml-module-qtquick-layouts qml-module-qtquick-privatewidgets \
    qml-module-qtquick-window2 qml-module-qtquick2 qml-module-qttest

    Now to compile we need to pull the code from github, currently the stable version is 0.8.8, so we can execute the following commands to pull the code from Github.

    mkdir ~/builds && cd ~/builds
    export RDM_ROOT=~/builds/rdm
    export RDM_VERSION=0.8.8
    git clone --recursive https://github.com/uglide/RedisDesktopManager.git --branch $RDM_VERSION --depth 1 $RDM_ROOT

    Now that we have the code for Redis Desktop Manager, we need to pull some extra repos so we can compile the application. We need to pull and compile breakpad

    git clone https://chromium.googlesource.com/linux-syscall-support $RDM_ROOT/3rdparty/gbreakpad/src/third_party/lss
    cd $RDM_ROOT/3rdparty/gbreakpad/
    touch README
    ./configure
    make -j 4

    Now we have everything required to compile Redis Desktop Manager, running the following commands will compile Redis Desktop Manager, so it can be used.

    cd $RDM_ROOT/src
    echo "#define RDM_VERSION \"$RDM_VERSION\"" > version.h
    qmake
    make -j 4

    The binary is located in $RDM_ROOT/bin, depending on the compilation, in my case it was in $RDM_ROOT/bin/linux/release, so just copy the binary rdm to where ever you want and you can run it.

    If you don’t want to polute your OS, you can always do this in a chroot.

    debootstrap --arch amd64 stretch /srv/chroot/stretch http://ftp.debian.org/debian
    chroot /srv/chroot/stretch

    The rest of the steps are the same, just now you don’t need to install all the packages from above, but you will need to install all the qml packages on the machine you will run the application.

    And after it finishes compiling, you can remove the folder by issuing.

    rm -rf /srv/chroot/stretch

    Now you have redis desktop manager. Well that’s it.

    Enjoy.