gpt4 book ai didi

macos - Apache Thrift 使用 libthrift-0.10.0.dylib 出错

转载 作者:行者123 更新时间:2023-12-02 01:16:10 25 4
gpt4 key购买 nike

我使用的是 macOS 10.12.3。昨天我成功安装了 thrift,但它无法与 python 一起正常工作。所以我今天重新制作并得到这个错误。有人可以告诉我出了什么问题。谢谢

Making all in perl
../../compiler/cpp/thrift --gen perl ../../test/ThriftTest.thrift
dyld: Symbol not found: _GENERAL_NAME_free
Referenced from: /Users/sara/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.dylib
Expected in: flat namespace
in /Users/sara/thrift-0.10.0/lib/cpp/.libs/libthrift-0.10.0.dylib
make[3]: *** [gen-perl/ThriftTest/Constants.pm] Abort trap: 6
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

最佳答案

我也遇到过同样的问题,现在解决了。当您遇到错误时,我认为 /usr/local/bin/thrift 已经存在于您的 macOS 中。然后运行
$ sudo chmod -R 777/usr/local/include/thrift/
$ brew link --overwrite 节俭
然后你会发现命令/usr/local/bin/thrift是可以的。

关于macos - Apache Thrift 使用 libthrift-0.10.0.dylib 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42504304/

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