Redis Desktop Manager编译

Redis Desktop Manager(RDM)是一款跨平台的Redis桌面客户端, 其支持SSH隧道连接, 批量删除等特性, 是非常优秀的Redis管理工具.

首先, 如果没有安装brew, 请通过以下脚本安装.

1
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安装qt5、openssl、libssh2(不同版本的RDM依赖可能不同, 请根据实际编译时的报错信息安装相应的依赖).

1
2
$ brew update && brew install qt5 openssl libssh2
$ export PATH=/usr/local/opt/qt5/bin:$PATH

克隆RDM版本库, 编译并安装CrashReporter.

1
2
3
4
5
6
7
8
9
10
11
12
13
### 克隆rdm仓库
git clone --recursive https://github.com/uglide/RedisDesktopManager.git rdm && cd rdm

### 编译CrashReporter
cd 3rdparty/crashreporter && qmake DESTDIR=./bin && make -s -j 8

### 编译cr可能报错,切换到7ec6f00版本编译
cd 3rdparty/crashreporter
git checkout 7ec6f00
qmake DESTDIR=./bin && make -s -j 8

### 拷贝编译好的cr到rdm下
mkdir -p ../../bin/osx/release && mv bin/crashreporter ../../bin/osx/release

编译RDM

1
2
$ cd ../../src && ./configure
$ qmake CONFIG-=debug && make -s -j 8 && cd ..

将bin/osx/release文件夹下生成的rdm.app拖到应用程序文件夹中即可完成安装.