Macos Can';不要在Mac OS 10.9.2上安装Thrift

Macos Can';不要在Mac OS 10.9.2上安装Thrift,macos,thrift,autotools,Macos,Thrift,Autotools,这个问题就像 ,但他在CentOS,我是runninc MacOS checking for gawk... (cached) awk checking for ranlib... (cached) ranlib ./configure: line 17029: syntax error near unexpected token `QT,' ./configure: line 17029: ` PKG_CHECK_MODULES(QT, QtCore >= 4.3, QtNetwo

这个问题就像 ,但他在CentOS,我是runninc MacOS

checking for gawk... (cached) awk
checking for ranlib... (cached) ranlib
./configure: line 17029: syntax error near unexpected token `QT,'
./configure: line 17029: `    PKG_CHECK_MODULES(QT, QtCore >= 4.3, QtNetwork >= 4.3, have_qt=yes, have_qt=no)'
我的环境很好

gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

uname -a
Darwin rMacBook.local 13.1.0 Darwin Kernel Version 13.1.0: Wed Apr  2 23:52:02 PDT 2014; root:xnu-2422.92.1~2/RELEASE_X86_64 x86_64
加:


当我运行
/bootstrap.sh
时,结果是:

    lib/cpp/test/Makefile.am:221: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
lib/cpp/test/Makefile.am:187: warning: variable 'processor_test_SOURCES' is defined but no program or
lib/cpp/test/Makefile.am:187: library has 'processor_test' as canonical name (possible typo)
lib/cpp/test/Makefile.am:178: warning: variable 'concurrency_test_SOURCES' is defined but no program or
lib/cpp/test/Makefile.am:178: library has 'concurrency_test' as canonical name (possible typo)
lib/cpp/test/Makefile.am:195: warning: variable 'processor_test_LDADD' is defined but no program or
lib/cpp/test/Makefile.am:195: library has 'processor_test' as canonical name (possible typo)
lib/cpp/test/Makefile.am:184: warning: variable 'concurrency_test_LDADD' is defined but no program or
lib/cpp/test/Makefile.am:184: library has 'concurrency_test' as canonical name (possible typo)
test/cpp/Makefile.am:96: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
tutorial/cpp/Makefile.am:65: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
如何安装并简单地执行以下操作:

$ sudo port install thrift

我只是安装thrift use brew。因为我的brew版本太低。我更新了我的brew,它可以工作。但是当我更新brew时,我遇到了一个问题-- 谢谢大家的回答

只要命令这些:

brew update
brew install thrift
如果更新遇到以下问题:

undefined method `to_sym' for nil:NilClass
只要重新进行brew更新,就可以了

尝试以下操作:

$ brew install pkg-config
今天我遇到了同样的问题,我不想使用
brew-install-thrift
,因为我的boost安装在自定义位置


安装
pkg config
,然后构建thrift的干净签出已成功。

对于thrift 11,首先安装brew,然后只需使用以下命令:

brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4ba654c6d99b3b6804dd3843546a9dcbb700188b/Formula/thrift.rb

当我运行
/bootstrap.sh
时,结果是:您使用的是哪个旧版本?您是否尝试过按照另一个问题中的建议更新gcc/autoconf?是的,所有插件都是最新版本。我使用和的源代码。此错误是使用github的源代码。组织的源代码是:src/generate/t_java_generator.cc:2830:14:错误:首先是不兼容的操作数类型(“bool”和“basic_ostream”)?first=false:indent(f_服务)您的第一个问题是否与相关?你的设置有问题,可能与节俭本身无关。第二个是,这是一个完全不同的问题,不属于这个问题。这不应该迁移到apple.stackexchange.com吗?