首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装pgmodeler

无法安装pgmodeler
EN

Stack Overflow用户
提问于 2015-06-08 11:47:51
回答 2查看 3.3K关注 0票数 4

我在Mac上编译pgmodeler时遇到了问题。我在二进制文件夹中输入了qmake pgmodeler.pro,并得到了以下错误:

代码语言:javascript
复制
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:21: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:24: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:103: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:104: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:105: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:106: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:107: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:108: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:109: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:110: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:111: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:112: defined(function, type): unexpected type [var].
 /Users/****/Applications/pgmodelerunzip/pgmodeler-0.8.1-beta/pgmodeler.pri:113: defined(function, type): unexpected type [var].
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-06-09 22:27:17

如何编译pgModeler?此时此刻,我无法帮助你,只能描述我的情况。

编译pgModeler的方法

我的LinuxMint17.1 (x64)上也有同样的问题。我遵循了本教程:http://www.pgmodeler.com.br/wiki/doku.php?id=installation

首先,我使用apt:sudo apt-get install libpq-dev libxml2-dev安装了一些必需的软件包

接下来,我从https://github.com/pgmodeler/pgmodeler/tags下载了最新版本的https://github.com/pgmodeler/pgmodeler/tags

在Linux的回购版中,只有Qt4版本,所以我不得不使用官方Qt站点的安装程序安装Qt5。我刚刚下载了Community并按照说明进行了操作。接下来,我只需要通过在/etc/environment中添加到我的路径(~/.bashrc也是一个很好的位置) $QT_DIR/Tools/QtCreator/bin$QT_DIR/5.4/gcc_64/bin (在我的例子中,可能会将它们更改为类似的)来指定新的Qt库的路径。

我只剩下终端中的qmake pgmodeler.pro && make && sudo make install类型,等待进程的结束。

我的英语还有很多不完善之处,所以请给我一些更正。

票数 2
EN

Stack Overflow用户

发布于 2017-03-15 13:03:42

kamarkiewicz的答案中的教程链接现在没有了,所以我将在这里发布我认为您需要在Ubuntu中进行构建的完整包列表。

代码语言:javascript
复制
sudo apt-get install postgresql-9.3 postgresql-client-9.3 libpq5 libpq-dev clang libxml2-dev qt5-default libqt5svg5-dev

PostgreSQL的东西在一开始是显而易见的,但我想我还是要提一提。之后:

  • libpq5libpq-dev是PostgreSQL开发库。
  • clang是在pgModeler构建过程中使用的编译器。
  • libxml2-dev是pgModeler的要求。
  • 必须使用qt5-default构建pgModeler,因此安装QT5将获得QT5开发包,并将其设置为默认的QT版本。
    • qmake -v在命令行上测试这一点,并验证它是否使用了QT5。

  • QT的SVG模块是必需的;libqt5svg5-dev提供了以下内容。

如果有人碰巧发现其他软件包,我已经安装了,请评论这个答案,我会很高兴地编辑它。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30708376

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档