Installing sqlitebrowser on RHEL7 / CentOS7

Install some dependencies

sudo yum -y install sqlite-devel qt5-qtbase-devel cmake3

I was also using devtoolset-8 for GCC 8.3 (default in CentOS 7 is GCC 4.8). I’m guessing GCC 4.8 will probably build OK, but I didn’t test this. Instructions for installing and enabling devtoolset-8 are here.

Prepare, acquire, configure, build, install

# Prepare
rm -fr /src/github.com/src/sqlitebrowser /src/github.com/build/sqlitebrowser
mkdir -p ~/src/github.com/src ~/src/github.com/build/sqlitebrowser
cd ~/src/github.com/src
# Acquire
git clone https://github.com/sqlitebrowser/sqlitebrowser.git
# Configure
cd ~/src/github.com/build/sqlitebrowser
cmake3 -DFORCE_INTERNAL_QSCINTILLA=ON ~/github.com/src/sqlitebrowser
# Build
make
# Install
sudo make install

Now, there should be a “sqlitebrowser” command to start the app (DB Browser for SQLite).

Leave a Comment