zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    项目选题报告答辩总结
    项目UML设计(团队)
    项目选题报告答辩总结
    第七次作业
    结对第二次
    第四次作业
    alpha冲刺4
    alpha冲刺3
    alpha冲刺2
    alpha冲刺1
  • 原文地址:https://www.cnblogs.com/milton/p/7867900.html
Copyright © 2011-2022 走看看