mac 10.13 build 一个 redis desktop manager

build 的东西比较多,性能差的电脑编译会很久。

下载地址:https://redisdesktop.com/download

本来想下载一个,但是发现只有 windows 是免费的,不过官网提供了 build from source 的指引,那就直接 build 一个吧。

首先是获取源码

git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.9 rdm && cd ./rdm

  

build 步骤:

1、Install XCode with xcode build tools
2、Install Homebrew
3、Build RDM dependencies cd ./src && ./configure
4、Install Qt 5.9
5、Open ./src/rdm.pro in Qt Creator
6、Run build

qt 配置:

1、下面的目录需要手动创建

2、配置qt version

这里需要安装 qt,brew install qt5,下面才会有相关的 qmake 可选

3、配置 kit

上面的编译器一定要选 clang

上面的配置完之后就可以点击 build 进行 build 了。

build 的结果在上面git clone 的 rdm 目录下的:

直接运行上面的 rdm 就可以了:

其中可能会报错的地方:

1、xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

解决方法:

安装 Xcode
运行命令 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

2、... setcreate file ... Info.plist (build的时候报的错)

解决方法:

在 rdm/src/resources 下创建一个空文件,文件名为 Info.plist

原文地址:https://www.cnblogs.com/eleven24/p/9028621.html