WSL Ubuntu 18.04 build Redis Desktop Manager

转向

archongum/RedisDesktopManager-Linux-WSL

WSL搭建Java开发环境

RedisDesktopManager-Linux-WSL

Base on WSL(Windows Subsystem for Linux)

Tested on Ubuntu 18.04 LTS

Before

  • WSL = Windows Subsystem for Liunx
  • WSL not support snap, see link

Installation

# need to upgrade
apt update && apt upgrade

# WSL has not g++
apt install g++

# change to latest tag
git clone --recursive https://github.com/uglide/RedisDesktopManager.git -b 0.9.8

cd RedisDesktopManager/
cd src/
./configure
qmake
make
make install

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

# optional, reduces rdm size 30MB+ to 2MB+
strip rdm

Some issues

Set default user to root

Open PowerShell: win+x, a

ubuntu1804.exe config --default-user root

g++(c++11)

apt install g++

Unable to localte package qt5

Error

E: Unable to locate package qt5-default
E: Unable to locate package qtdeclarative5-dev
E: Unable to locate package libqt5charts5-dev
E: Unable to locate package qml-module-qtquick-controls
E: Unable to locate package qml-module-qtquick-controls2
E: Unable to locate package qml-module-qt-labs-settings
E: Unable to locate package qml-module-qtquick-dialogs
E: Unable to locate package qml-module-qtquick-layouts
E: Unable to locate package qml-module-qt-labs-folderlistmodel
E: Unable to locate package qml-module-qtqml-models2
E: Unable to locate package qml-module-qtcharts

Solution

apt update && apt upgrade

Cannot clone linux-syscall-support repo(because of Great Firewall)

Appear in ./configure

Error

Cloning into 'src/third_party/lss'...
fatal: unable to access 'https://chromium.googlesource.com/linux-syscall-support/': Failed to connect to chromium.google
source.com port 443: Connection refused
Cannot clone linux-syscall-support repo

Solution: IGNORE IT

Failure to find: app/logger.h

Appear in qmake

Error

WARNING: Failure to find: app/logger.h

Solution: IGNORE IT

third_party/lss/linux_syscall_support.h: No such file

Appear in make, because of Great Firewall, can’t clone https://chromium.googlesource.com/linux-syscall-support/ repo

Error

In file included from ../3rdparty/gbreakpad/src/client/linux/dump_writer_common/thread_info.h:37:0,                 
from ../3rdparty/gbreakpad/src/client/linux/minidump_writer/linux_dumper.h:51,                 
from ../3rdparty/gbreakpad/src/client/linux/minidump_writer/minidump_writer.h:41,                 
from ../3rdparty/gbreakpad/src/client/linux/handler/exception_handler.h:42,                 
from modules/crashhandler/crashhandler.cpp:10:../3rdparty/gbreakpad/src/common/memory_allocator.h:50:10: 
fatal error: third_party/lss/linux_syscall_support.h: No such file or directory 
#include "third_party/lss/linux_syscall_support.h"          
compilation terminated.Makefile:1662: recipe for target '../bin/linux/release/obj/crashhandler.o' failedmake: *** [../bin/linux/release/obj/crashhandler.o] Error 1

Solution

Download linux_syscall_support.h file
链接:https://pan.baidu.com/s/19jQK3S16ZvUOUzPAtRZujg
提取码:odns


mkdir /opt/RedisDesktopManager/3rdparty/gbreakpad/src/
third_party/lss

cp linux_syscall_support.h /opt/RedisDesktopManager/3rdparty/gbreakpad/src/
third_party/lss

Missing libbreakpad_client.a

Appear in make

Error

g++: error: /data/RedisDesktopManager/3rdparty/gbreakpad/src/client/linux/libbreakpad_client.a: No such file or directory
Makefile:564: recipe for target '../bin/linux/release/rdm' failed

Solution

cd /opt/RedisDesktopManager/3rdparty/gbreakpad/
./configure
make

/usr/bin/ld: cannot find -l*

Appear in make

Error

/usr/bin/ld: cannot find -lssh2
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:465: recipe for target '../bin/linux/release/rdm' failed
make: *** [../bin/linux/release/rdm] Error 1

Solution

# for -lssh2
apt install libssh2-1-dev
# for -lz
apt install zlib1g-dev
# for other, Google: /usr/bin/ld: cannot find -l<other package>

Optional, Add to PATH

Easy use

# RDM
export RDM_HOME=/opt/redis-desktop-manager
export PATH=$RDM_HOME:$PATH
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值