gpt4 book ai didi

macos - 无法在 Mac OS 10.9.2 上安装 Thrift

转载 作者:行者123 更新时间:2023-12-02 05:08:37 25 4
gpt4 key购买 nike

这个问题就像Installing thrift on CentOS 6.5 64 bit and Cassandra PDO,但他运行的是 CentOS,我运行的是 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')

最佳答案

尝试以下操作:

$ brew install pkg-config

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

安装pkg-config,然后构建一个干净的 thrift checkout 工作。

关于macos - 无法在 Mac OS 10.9.2 上安装 Thrift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23455499/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com