Apache Thrift make err with libthrift-0.10.0.dylib



我正在使用MacOS 10.12.3。昨天我成功安装了节俭,但无法与Python合作。因此,我今天重新生出它,并得到这个错误。有人可以告诉我怎么了。thx

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

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

最新更新