Skip to content

Commit 940742d

Browse files
pc-jediuglide
authored andcommitted
Add support for Linux Mint (17, 18) (RedisInsight#3710)
1 parent 9444a5d commit 940742d

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

src/configure

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,38 @@ if [ "$os_VENDOR" == "Ubuntu" ]; then
5959
build_libssh2
6060

6161
print_title "Run: source /opt/qt${RDM_QT_VERSION:0:2}/bin/qt${RDM_QT_VERSION:0:2}-env.sh && qmake && make "
62-
62+
elif [ "$os_VENDOR" == "LinuxMint" ]; then
63+
mint_ver=${os_RELEASE:0:2}
64+
print_title "Build RDM on Linux Mint: $mint_ver"
65+
66+
if [ "$mint_ver" != "17" ] && [ "$mint_ver" != "18" ]; then
67+
echo "RedisDesktopManager only supports linux mint 17 and 18."
68+
exit 1
69+
fi
70+
71+
# Check Qt ppa
72+
if [ ! -f /opt/qt${RDM_QT_VERSION:0:2}/bin/qt${RDM_QT_VERSION:0:2}-env.sh ]; then
73+
print_title "Install Qt ${RDM_QT_VERSION}"
74+
75+
if [ "$mint_ver" == "17" ]; then
76+
sudo add-apt-repository --yes ppa:beineri/opt-qt${RDM_QT_VERSION}-trusty
77+
elif [ "$mint_ver" == "18" ]; then
78+
sudo add-apt-repository --yes ppa:beineri/opt-qt${RDM_QT_VERSION}-xenial
79+
fi
80+
81+
sudo apt-get update -y
82+
sudo apt-get install qt${RDM_QT_VERSION:0:2}base qt${RDM_QT_VERSION:0:2}imageformats qt${RDM_QT_VERSION:0:2}tools \
83+
qt${RDM_QT_VERSION:0:2}declarative qt${RDM_QT_VERSION:0:2}quickcontrols -y
84+
fi
85+
86+
print_title "Check deps"
87+
sudo apt-get install automake libtool libssl-dev \
88+
libssh2-1-dev g++ libgl1-mesa-dev cmake -y
89+
90+
build_breakpad
91+
build_libssh2
92+
93+
print_title "source /opt/qt${RDM_QT_VERSION:0:2}/bin/qt${RDM_QT_VERSION:0:2}-env.sh && qmake && make "
6394
elif [ "$os_VENDOR" == "Fedora" ] || [[ "$os_VENDOR" == "CentOS" && "$os_RELEASE" -ge "7" ]]; then
6495
print_title "Build RDM on $os_VENDOR: $os_RELEASE"
6596

0 commit comments

Comments
 (0)