此问题与Installing thrift on CentOS 6.5 64 bit and Cassandra PDO类似 ,但他在CentOS上,我正在运行Mac OS。
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')
答案 0 :(得分:3)
请尝试以下操作:
$ brew install pkg-config
我今天遇到了同样的问题,我不想使用brew install thrift
,因为我在自定义位置安装了升级版。
安装pkg-config
,然后建立一个干净的节俭结账工作。
答案 1 :(得分:2)
我只是安装旧货使用brew.Because我的酿造版本太低。我更新我的酿造,它的工作。但当我更新我的酿造,我遇到一个问题 - https://github.com/Homebrew/homebrew/issues/28965#issuecomment-42163418 谢谢所有答案!
只需命令这些:
brew update
brew install thrift
如果更新遇到这样的问题:
undefined method `to_sym' for nil:NilClass
再次刷新更新,它会起作用!
答案 2 :(得分:1)
如何安装macports并干脆执行:
$ sudo port install thrift
答案 3 :(得分:0)
对于节俭11,首先安装brew,然后只需使用以下命令:
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4ba654c6d99b3b6804dd3843546a9dcbb700188b/Formula/thrift.rb