Installing sqlitebrowser on RHEL7 / CentOS7

The cmake3 instructions at https://github.com/sqlitebrowser/sqlitebrowser didn’t work on my RHEL7 dev box, but I tripped across a comment here to use qmake instead: https://github.com/sqlitebrowser/sqlitebrowser/issues/1439

I’ll update the exact package configuration when I try this on a “fresher” system (less build packages already added), but this is what worked for me…

sudo yum -y install added ant-antlr qt-devel qt5-linguist qwt-qt5-devel
git clone https://github.com/sqlitebrowser/sqlitebrowser
cd sqlitebrowser
qmake-qt5
make
sudo make install

After this, the command sqlitebrowser should launch the GUI.

Here are all the Qt packages I had installed at the time of the build (output of rpm -qa | grep qt)…

qt5-rpm-macros-5.9.2-3.el7.noarch
qt-devel-4.8.7-2.el7.x86_64
qtlockedfile-qt5-2.4-20.20150629git5a07df5.el7.x86_64
qt5-qttools-common-5.9.2-1.el7.noarch
dbusmenu-qt-0.9.2-7.el7.x86_64
qt-4.8.7-2.el7.x86_64
qt5-qtbase-devel-5.9.2-3.el7.x86_64
qt-x11-4.8.7-2.el7.x86_64
qtsingleapplication-qt5-2.6.1-28.el7.x86_64
qt5-qtsensors-5.9.2-1.el7.x86_64
qt5-qtbase-gui-5.9.2-3.el7.x86_64
qtkeychain-0.7.0-1.el7.x86_64
qt5-qtwebkit-5.9.1-1.el7.x86_64
highcontrast-qt5-0.1-2.el7.x86_64
qt5-qtxmlpatterns-5.9.2-1.el7.x86_64
adwaita-qt5-1.0-1.el7.x86_64
polkit-qt-0.103.0-10.el7_0.x86_64
qt5-qtbase-5.9.2-3.el7.x86_64
qt-settings-19-23.8.el7.noarch
qt5-qtlocation-5.9.2-1.el7.x86_64
qt5-qtbase-common-5.9.2-3.el7.noarch
qtkeychain-qt5-0.7.0-1.el7.x86_64
qt5-linguist-5.9.2-1.el7.x86_64
qt5-qtdeclarative-5.9.2-1.el7.x86_64
qt5-qtwebchannel-5.9.2-1.el7.x86_64

I was using a version of sqlite built from source (sqlite-amalgamation-3250300). I was also using GCC 7.2 built from source.

Leave a Comment