Open Camp1on opened 2 years ago
今天刚升级 MacOS 到 monterey,尝试安装 thrift@0.10 确实会遇到这个的问题,但 thrift@0.11 一切正常。(thrift@0.11 中移除了部分对 boost 的依赖)
我尝试了自己安装 boost 1.78,并且为 thrift@0.10 指定 --with-boost=${boost_libs_path}
可以成功安装 。
目前推测是因为 homebrew-core 中提供的 boost bottle 在 monterey 存在问题。
接下来我会尝试新建一个 homebrew-boost tap 解决 flat namespace 的问题。
我也遇到了同样的问题,但是brew install thrift@0.10 --with-boost=${boost_libs_path} 报错,Error: invalid option: --with-boost=.....,麻烦问一下您是怎么安装成功的呢,谢谢您
已经更新了 thrift@0.10 formula,默认安装过程不关联 boost ,在 Monterey 系统上可以顺利安装,用 thrift 生成 C++ 可能会存在问题。其他编程语言正常。
# 更新 cartman-kai/homebrew-thrift
$ brew update -v
# 执行安装
$ brew install thrift@0.10
@cartman-kai 老哥可以搞个thrift 0.9的吗 死活装不上
@cartman-kai 老哥可以搞个thrift 0.9的吗 死活装不上
先加个分支,你自己用着测试。用下面这个命令测试一下, MacOS 13.6.7 正常可用。
后面我再合并
cd `brew tap-info --installed |grep "Taps/cartman-kai/homebrew-thrift" |awk '{print $1}'`
git checkout origin/add_0_9
brew update
brew install -vd cartman-kai/thrift/thrift@0.9
Last 15 lines from /Users/liukangping/Library/Logs/Homebrew/thrift@0.10/02.make: libtool: link: clang++ -Wall -Wextra -pedantic -g -O2 -o .libs/thrift src/thrift/thrift-main.o src/thrift/audit/thrift-t_audit.o src/thrift/generate/thrift-t_c_glib_generator.o src/thrift/generate/thrift-t_cpp_generator.o src/thrift/generate/thrift-t_java_generator.o src/thrift/generate/thrift-t_json_generator.o src/thrift/generate/thrift-t_as3_generator.o src/thrift/generate/thrift-t_dart_generator.o src/thrift/generate/thrift-t_haxe_generator.o src/thrift/generate/thrift-t_csharp_generator.o src/thrift/generate/thrift-t_py_generator.o src/thrift/generate/thrift-t_rb_generator.o src/thrift/generate/thrift-t_perl_generator.o src/thrift/generate/thrift-t_php_generator.o src/thrift/generate/thrift-t_erl_generator.o src/thrift/generate/thrift-t_cocoa_generator.o src/thrift/generate/thrift-t_swift_generator.o src/thrift/generate/thrift-t_st_generator.o src/thrift/generate/thrift-t_ocaml_generator.o src/thrift/generate/thrift-t_hs_generator.o src/thrift/generate/thrift-t_xsd_generator.o src/thrift/generate/thrift-t_xml_generator.o src/thrift/generate/thrift-t_html_generator.o src/thrift/generate/thrift-t_js_generator.o src/thrift/generate/thrift-t_javame_generator.o src/thrift/generate/thrift-t_delphi_generator.o src/thrift/generate/thrift-t_go_generator.o src/thrift/generate/thrift-t_gv_generator.o src/thrift/generate/thrift-t_d_generator.o src/thrift/generate/thrift-t_lua_generator.o -Wl,-bind_at_load -ll src/thrift/libparse.a ./.libs/libthriftc.dylib /private/tmp/thriftA0.10-20211130-80788-zmyokp/thrift-0.10.0/lib/cpp/.libs/libthrift.dylib -L/usr/local/opt/boost/lib -L/usr/local/opt/openssl@1.1/lib -lssl -lcrypto -lpthread Making all in lib Making all in json make[4]: Nothing to be done for
all-am'. Making all in xml make[4]: Nothing to be done for
all-am'. make[3]: Nothing to be done for `all-am'. Making all in tutorial Making all in cpp ../../compiler/cpp/thrift --gen cpp -r ../../tutorial/tutorial.thrift dyld[90108]: symbol not found in flat namespace '_ZN5boost4math7signbitIdEEiT' make[3]: [gen-cpp/shared_types.cpp] Abort trap: 6 make[2]: [all-recursive] Error 1 make[1]: [all-recursive] Error 1 make: [all] Error 2