2017-02-28 65 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沒問題。