[Share Experiences] 【deepin 20.1】deepin 20.1编译安装redis-desktop-manager,rdm
Tofloor
poster avatar
heichengzi
deepin
2021-01-17 01:24
Author

1.先看效果

deepin20.1 通过snap安装不了redis-desktop-manager

只能通过编译安装,我编译的版本是0.9.9

git 仓库地址

https://github.com/uglide/RedisDesktopManager/tree/0.9.9

参考文档地址:

http://docs.redisdesktop.com/en/0.8.0/install/#build-from-source

主要内容如下:

由于我编译的版本和官方文档的这个版本不一样,所有命令中的版本号需要修改

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

cd src/ ./configure source /opt/qt511/bin/qt511-env.sh && qmake && make && sudo make install

cd /opt/redis-desktop-manager/ && sudo mv qt.conf qt.backup

用官方的这个会提示各种错误,

./configure的时候会提示该系统不支持

解决方法如下:替换掉./configure中的Ubuntu和ubuntu,命令如下:

sed -i "s/Ubuntu/Deepin/g" configure

sed -i "s/ubuntu/deepin/g" configure

替换后./configure的时候会提示从https://chromium.googlesource.com/linux-syscall-support,拉不了项目,

解决方法如下:

cd ../build 

vim common_functions 

注释掉git clone --depth 1 -v https://chromium.googlesource.com/linux-syscall-support src/third_party/lss || true

可以通过下面的地址下载

链接: https://pan.baidu.com/s/1ir2On0bQQAoBVHEYJijzOw  密码: fkfl

下载后把文件解压,把名字更改为lss,复制文件夹到rdm/3rdparty/gbreakpad/src/third_party/中

之后运行./configure就不会报错了

第二步安装qt5的相关组建,deepin20.1已经默认安装了qt5.11

sudo apt install software-properties-common -y

sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-bionic

sudo apt-get update

sudo apt-get install qt511declarative qt511graphicaleffects qt511gamepad qt511multimedia qt511svg qt511tools qt511charts-no-lgpl qt511quickcontrols

安装好后按官方方式编译,吧qt56换成qt511

切换到

rdm/src 中

source /opt/qt511/bin/qt511-env.sh && qmake && make && sudo make install

编译好后在/opt目录中会生成redis-desktop-manager目录

/opt/redis-desktop-manager

进入/opt/redis-desktop-manager中

mv qt.conf qt.conf_bak

创建图标

vim /apt/share/applications/redis-desktop-manager.desktop

#!/usr/bin/env xdg-open



[Desktop Entry]

Encoding=UTF-8

Type=Application

Icon=/data/home/XXXXX/XXXXX/rdm/src/resources/rdm.png

Exec="/opt/redis-desktop-manager/rdm"

Name=redis

Name[zh_CN]=rdm

Comment=redis

StartupWMClass=redis

 

 

 

 

 

 

Reply Favorite View the author
All Replies
flyinke
deepin
2021-01-17 04:46
#1

我改用这个了

https://github.com/qishibo/AnotherRedisDesktopManager

Reply View the author
heichengzi
deepin
2021-01-17 05:30
#2
flyinke

我改用这个了

https://github.com/qishibo/AnotherRedisDesktopManager

another 这个没有这个好用

Reply View the author
suxiaomi
deepin
2021-01-29 23:42
#3

可以分享下编译好的包吗

Reply View the author
csworldcup
deepin
2021-02-04 21:49
#4

原来20这个版本是可以的,我都装了,后来升级系统之后删掉了,再装就装不上了,重新编译也不行。。。

Reply View the author
28******22@qq.com
deepin
2021-02-09 20:22
#5

之前安装好是可以用的,这两天升级后也升了内核到5.10,然后不能用了

Reply View the author
csworldcup
deepin
2021-02-19 23:55
#6

看看这个,可以直接安装最新版 redis-desktop-manager,就不用编译那么麻烦了

 

https://bbs.deepin.org/zh/post/214298

Reply View the author
Comments
richie696
2021-03-01 06:23
这个方法已经失效了,应该是snap的原因,不知道为什么,如果你之前装成功的不要卸载也不要更新,你只要一动保准你废掉。
28******22@qq.com
deepin
2021-04-03 19:07
#7

https://ywnz.com/linuxrj/8645.html   

通过上面的文章搞定了,基本就是升级snapd的版本, deepin里自带的版本太老了

Reply View the author