• Ubuntu16.04编译安装Redis Desktop Manager


    Redis Desktop Manager for OSX&Ubuntu 的安装版是收费的, 如果自己编译则是免费的.

    安装过程参考官方提供的文档  http://docs.redisdesktop.com/en/latest/install/#build-from-source

    1. Git导出源码

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

    注意: 其中有部分源码来自于Google上的代码库, 需要设置git代理, git config --global http.proxy 和 git config --global https.proxy

    2. 按以下步骤执行

    cd src/
    # 这一步会安装依赖的库, 例如qt59, 注意查看执行过程确保都成功
    ./configure
    # 设置qt环境变量
    source /opt/qt59/bin/qt59-env.sh 
    #
    qmake
    #
    make
    #
    sudo make install
    #
    cd /usr/share/redis-desktop-manager/bin
    # 这一步是必须的, 否则无法启动
    sudo mv qt.conf qt.backup

    注意: 安装后, 直接运行rdm.sh会无法启动, 需要将 source /opt/qt59/bin/qt59-env.sh 这句加到sh文件头部, 如下

    #!/bin/bash
    source /opt/qt59/bin/qt59-env.sh
    DIR=$(dirname "$(readlink -f "$0")")
    export LD_LIBRARY_PATH="$DIR/../lib":$LD_LIBRARY_PATH
    $DIR/rdm

    Update 2018-05-08: 在Ubuntu18.04上编译时出错, 错误为

    Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)

    通过安装 zlib1g-dev 解决

    sudo apt-get install zlib1g-dev

    这个版本不需要再添加qt59-env.sh, 但是编译安装后的rdm.sh 不是可执行的, 需要手动设置一下, sudo chmod +x rdm.sh

  • 相关阅读:
    【iCore、iCore2 双核心板】EPCS 实验(SPI Flash)(基于Verilog语言)
    【iCore2双核心板】SRAM 读写实验(基于Verilog语言)
    大便难案
    乌梅丸案二则
    奔豚
    中医对甲流的认识
    大青龙汤临床应用
    中风之补阳还五汤
    时方的魅力
    艾灸急治
  • 原文地址:https://www.cnblogs.com/milton/p/7867900.html
Copyright © 2020-2023  润新知