Last active
July 30, 2022 15:29
-
-
Save eduardoarakaki/1b3681501b78a3b7d281e854cf436e05 to your computer and use it in GitHub Desktop.
pgModeler Build and Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install PostgreSQL | |
| # Create the file repository configuration | |
| sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
| # Import the repository signing key | |
| wget - quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
| # Update the package lists and update the system | |
| sudo apt update && sudo apt upgrade -y | |
| # Install the latest version of PostgreSQL | |
| sudo apt install postgresql postgresql-common postgresql-contrib | |
| # Install build dependencies | |
| sudo apt install build-essential libxml2-dev | |
| # Install Qt | |
| sudo apt install qtcreator qt5-default libpq-dev libqt5svg5-dev qttools5-dev | |
| # Set up our local environment | |
| export QT_ROOT=/usr/lib/qt5 | |
| export INSTALLATION_ROOT=~/code/pgmodeler/bin/0.9.4-beta | |
| mkdir -pv $INSTALLATION_ROOT | |
| # Get the pgModeler repo | |
| cd ~/code/pgmodeler | |
| git clone https://github.com/pgmodeler/pgmodeler.git | |
| cd pgmodeler | |
| git pull | |
| git checkout v0.9.4-beta | |
| git clone https://github.com/pgmodeler/plugins | |
| cd plugins | |
| git checkout develop | |
| # Configure the build | |
| export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/ | |
| cd ~/code/pgmodeler/pgmodeler | |
| qmake -r CONFIG+=release \ | |
| PREFIX=$INSTALLATION_ROOT \ | |
| BINDIR=$INSTALLATION_ROOT \ | |
| PRIVATEBINDIR=$INSTALLATION_ROOT \ | |
| PRIVATELIBDIR=$INSTALLATION_ROOT/lib \ | |
| pgmodeler.pro | |
| # Build pgModeler | |
| cd ~/code/pgmodeler/pgmodeler | |
| make | |
| make install | |
| # Run pgModeler | |
| cd ~/code/pgmodeler/bin/0.9.4-beta && ./pgmodeler & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment