sudo apt-get install build-essential
sudo apt-get install git
sudo apt-get install qtcreator
sudo apt-get install qt6-base-dev
sudo apt-get install qt5-qmake
sudo apt-get install libpq5
sudo apt-get install libxml2
sudo apt-get install pkg-config
sudo apt-get install xml2
sudo apt-get install libxml2-dev
sudo apt-get install libpq-dev
sudo apt-get install libqt5svg5-dev
sudo apt-get install libqt6svg6*
sudo apt-get install libxext-dev
or install all dependencies in one command line
sudo apt-get install build-essential git qtcreator qt6-base-dev qt5-qmake libpq5 libxml2 pkg-config xml2 libxml2-dev libpq-dev libqt5svg5-dev qmake6 libqt6svg6* libxext-dev
qtchooser -install $(which qmake6)
export QT_SELECT=qt6
Clone the PgModeler from github https://github.com/pgmodeler/pgmodeler.git
git clone https://github.com/pgmodeler/pgmodeler.git
cd pgmodeler
Once everything is prepared, you can compile and install pgmodeler using the following commands
qmake pgmodeler.pro
make
sudo make install
The binary will be available in /usr/local/bin/
Just type the below command in terminal
pgmodeler
Tested with Ubuntu-20.04 Enjoy !!!
Add Desktop shortcut
Create PgModeler.desktop
file in the ~Desktop
location with the following content
[Desktop Entry]
Version=1.0
Type=Application
Name=PgModeler
Exec=/usr/local/bin/pgmodeler
Icon=/home/enkindle/Pictures/pgmodeler_logo.png
Terminal=false
Right click on the file and Allow Launcing
and Allow Execution
.