ubuntu16.04编译redis desktop manager遇到的问题
发布日期:2021-05-14 04:32:01 浏览次数:22 分类:精选文章

本文共 2294 字,大约阅读时间需要 7 分钟。

###Ubuntu 16.04编译Redis Desktop Manager的详细指导

####1.官方编译指导 git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.8.0 rdm & & cd ./rdm 编译脚本:

cd src/./configuresource /opt/qt56/bin/qt56-env.sh &  &  qmake &  &  make &  &  sudo make install
cd /usr/share/redis-desktop-manager/binsudo mv qt.conf qt.backup

####下载问题 问题1: RedisDesktopManager 下载不全

解决方法: 解释:使用--recursive参数会导致部分模块无法下载,请去掉该参数,并手动下载或更新相关子模块文件。具体步骤如下:

# 删除--recursive参数
git clone https://github.com/uglide/RedisDesktopManager.git -b 0.8.0 rdm
cd rdm
# 处理子模块
git submodule update --init

子模块列表:

[submodule "3rdparty/qtconsole"] path = 3rdparty/qtconsole url = https://github.com/uglide/QtConsole.git
[submodule "3rdparty/crashreporter"] path = 3rdparty/crashreporter url = https://github.com/RedisDesktop/CrashReporter.git
# 其他子模块...

下载完成后,(如有个别模块无法下载)手动下载并覆盖至对应目录。

####头文件问题 问题2: linux-syscall-support头文件无法下载

解决方法: 克隆仓库并解压:

git clone https://chromium.googlesource.com/linux-syscall-support
# 解压并创建必要目录
mkdir -p third_party/lss
cd third_party/lss

将下载文件移动至指定目录:

mv linux-syscall-support.h third_party/lss/

####文件路径问题 问题3: rdm.qrc找不到phpUnserialize.js文件

解决方法: 手动下载并覆盖文件:

git clone https://github.com/uglide/php-unserialize-js.git
cd php-unserialize-js
# 复制文件到目标路径
cp phpUnserialize.js ../resources/qml/3rdparty/php-unserialize-js/

####编译依赖问题 问题4:编译时提示缺少libbreakpad_client.a

解决方法: 编译gbreakpad子模块:

cd 3rdparty/gbreakpad//tertrack目录
make

这将生成libbreakpad_client.a文件。

####脚本执行问题 问题5:脚本无法执行配置文件

解决方法: 可能原因:

  • 权限问题:执行脚本需具备足够权限。如果命令被拒绝,可以尝试:
sudo chmod 777 configure
  • analizغيرة转换:确保脚本文件的编码无误,建议使用工具如dos2unix处理:
dos2unix configure

或修改脚本文件的编码格式:

vim configure
:set fileformat=unix
:write
: q

####Qt环境问题 问题6: 启动程序提示无法找到xcb版本

解决方法: 首先,执行 qt.conf变量改名命令:

cd /usr/share/redis-desktop-manager/binsudo mv qt.conf qt.backup

如果问题仍未解决,请检查环境变量: 打开.bashrc文件:

gedit ~/.bashrc

添加以下环境变量(需要高 Superman 权限):

export PATH=/opt/qt56/bin:$PATH
export QT_QPA_PLATFORM_PLUGIN_PATH=/opt/qt56/plugins
export LD_LIBRARY_PATH=/opt/qt56/lib
source ~/.bashrc

####下载依赖问题 问题7: Qtbase文件下载缓慢

解决方法: 尽量使用镜像下载,建议耐心等待完成。若实在不方便,可以借助工具下载或使用加速下载方法。

####开发工具问题 也可以参考报错提示:

./autotools/depcomp: 行 3: $'\r': 未找到命令

解决方法:

  • 检查命令执行权限:
  • sudo chmod 777 configure
    1. 检查系统是否支持UTF-8编码,并转换文件编码:
    2. dos2unix configure

      或使用辅助工具转换文件编码:

      常见问题解决总结

      以上步骤适用于 Ubuntu 16.04和其他Linux系统。遇到其他问题请参考编译社区或详细的编译说明文件。

    上一篇:编译Windows32位的redis
    下一篇:ubuntu安装IDEA2016

    发表评论

    最新留言

    很好
    [***.229.124.182]2025年04月25日 15时30分02秒