Friday, July 13, 2018

How to compile Redis Desktop Manager on Ubuntu 18.04

Unlike most open source applications, Redis Desktop Manager can be tricky to get installed on open source platforms. The developer has monetized his application by providing pre-compiled packages for Linux platforms and OSX for a fee. Instructions on the website are misleading, and attempts to get the developer to either fix them or remove them have been responded to harshly.
I have no issue with the developer looking to monetizing his work, and appreciate that he makes the source code available under a free license, but I'd still like to be able to compile the application myself and had some trouble getting it to work. After some Googling around I finally got it installed. Here are the instructions that worked for me.
git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.9 rdm
cd ./rdm/src
./configure
qmake
make
sudo make install
sudo mv /opt/redis-desktop-manager/qt.conf /opt/redis-desktop-manager/qt.backup
If you came here from a failed attempt to install rdm, you may run into the following error.
collect2: error: ld returned 1 exit status
This can be resolved by removing the old libssh2.a file.
sudo rm /usr/local/lib/libssh2.a
I also saw some people on the Internet ran into this error.
This application failed to start because it could not find or load the Qt platform plugin "xcb".
That just means you failed to run the following command.
sudo mv /opt/redis-desktop-manager/qt.conf /opt/redis-desktop-manager/qt.backup
Update: I submitted a pull request, which has been accepted. The main rdm site now contains these same instructions