记录一下mac 下载pgmodeler 遇到的问题
1.下载源码 git clone https://github.com/pgmodeler/pgmodeler.git
2.切换分支git checkout [master | develop] (我在切换分支的时候说master下没有文件 我用的sourceTree切换的)
3.下载qt brew install qt
4.连接上qt brew link qt5 —force
(连接上最好了没连接上先跳过)
5.下载 pgsql brew install postgresql
6.下载libxml2 brew install libxml2
7.找到你刚才下载的pgmodeler的源码中的 pgmodeler.pri 修改PGSQL_LIB,PGSQL_INC,XML_INC,XML_LIB
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
8.执行下面的命令