Refer to pgmodeler installation.
Steps:
- Clone the pgmodeler git repo.
- Use Homebrew to install qt5 (5.4.2, see here), libxml2, and postgresql.
- Edit the pgmodeler.pri (not .pro) file and change these variables:
PGSQL_LIB = /usr/local/opt/postgresql/lib/libpq.dylib
PGSQL_INC = /usr/local/opt/postgresql/include
XML_INC = /usr/local/opt/libxml2/include/libxml2
XML_LIB = /usr/local/opt/libxml2/lib/libxml2.dylib - Follow instructions to compile pgmodeler (you might need to put Qt's binaries in your PATH. I was lazy and didn't).
$ /usr/local/opt/qt5/bin/qmake pgmodeler.pro
$ make
$ make install
$ cd /Applications
$ /usr/local/opt/qt5/bin/macdeployqt pgmodeler.app -executable=pgmodeler.app/Contents/MacOS/pgmodeler-ch -executable=pgmodeler.app/Contents/MacOS/pgmodeler-cli
Then I was able to do
$ open pgmodeler.app
$ cd /Applications
$ /usr/local/opt/qt5/bin/macdeployqt pgmodeler.app -executable=pgmodeler.app/Contents/MacOS/pgmodeler-ch -executable=pgmodeler.app/Contents/MacOS/pgmodeler-cli
Then I was able to do
$ open pgmodeler.app
I don't even know how I ended up here, but I assumed this publish used to be good.
ReplyDeleteI do not understand who you are however certainly you are
going to a well-known blogger in the event you
are not already. Cheers!