2017-02-28 68 views
3

我正在使用macOS 10.12.3。 昨天我成功安装了节俭,但无法正确使用python。所以我今天重新制作并得到这个错误。有人能告诉我什么是错的。 ThxApache Thrift与libthrift-0.10.0.dylib发生错误

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 

回答

1

我有同样的问题,但现在我解决了它。当你有错误时,我认为/usr/local/bin/thrift已经存在于你的macOS中。然后运行 $ sudo chmod -R 777 /usr/local/include/thrift/ $ brew link --overwrite thrift 然后你会发现命令/usr/local/bin/thrift没问题。