【问题标题】:Error installing thrift on mac yosemite在 mac yosemite 上安装 Thrift 时出错
【发布时间】:2015-03-05 09:09:13
【问题描述】:

我按照以下步骤在 MAC Yosemite 上安装 thrift:

  1. http://archive.apache.org/dist/thrift/0.9.0/下载并解压包
  2. 按照此页面上的步骤操作: https://thrift.apache.org/docs/install/os_x

但我在运行 ./configure 命令后遇到以下错误:

./configure: line 17810: 意外标记附近的语法错误QT,' ./configure: line 17810:PKG_CHECK_MODULES(QT, QtCore >= 4.3, QtNetwork >= 4.3, have_qt=yes, have_qt=no)'

有人可以帮忙吗?

【问题讨论】:

  • 那是this one吗?如果是,那么也许你应该升级到更新的版本,如果安装 pck-config 不能解决问题。
  • 我已经安装了 pkg-config。我通过运行 pkg-config --version 检查它并得到 0.28 作为版本。

标签: qt osx-yosemite thrift autotools


【解决方案1】:

好的。看来我机器上安装的 pkg-config 不是 brew installed pkg-config。因此,使用 brew 卸载并安装了 pkg-config。这解决了上述问题。之后,我还发现我的机器上安装的automake是1.15,我需要automake 1.12才能安装thrift 0.9.0。

【讨论】:

  • brew install automake@1.12
  • 试试 1.15 + 不要忘记 brew link automake
猜你喜欢
  • 2015-08-19
  • 2015-02-24
  • 1970-01-01
  • 2017-11-17
  • 2015-10-30
  • 2015-07-17
  • 1970-01-01
  • 2014-12-12
  • 1970-01-01
相关资源
最近更新 更多