The official installation instructions for pgModeler recommends installing Xcode and the Enterprise DB distribution of Postgres to fulfill its build requirements. Luckily, Homebrew's got us covered!
-
Checkout the source
git clone https://github.com/pgmodeler/pgmodeler.git git checkout master
-
Install dependencies with brew
brew install qt libxml2 libpq
-
Tweak build script (
pgmodeler.pri
)macx { PGSQL_LIB = /usr/local/opt/libpq/lib/libpq.dylib PGSQL_INC = /usr/local/opt/libpq/include XML_INC = /usr/local/opt/libxml2/include/libxml2 XML_LIB = /usr/local/opt/libxml2/lib/libxml2.dylib INCLUDEPATH += $$PGSQL_INC $$XML_INC }
-
Build
qmake -r pgmodeler.pro make make install