2013-10-09 73 views
1

當我試圖配置和使節儉0.9.1它會給出一些錯誤。任何人都可以告訴我這個原因,我該怎麼做才能解決這個問題。錯誤如下所示。Apache節儉不能使

[email protected]:~/WorkDir/thrift-0.9.1> make 
make all-recursive 
make[1]: Entering directory `/home/user/WorkDir/thrift-0.9.1' 
Making all in compiler/cpp 
make[2]: Entering directory `/home/user/WorkDir/thrift-0.9.1/compiler/cpp' 
make all-am 
make[3]: Entering directory `/home/user/WorkDir/thrift-0.9.1/compiler/cpp' 
\ 
\ 
/bin/sh ../../ylwrap `test -f 'src/thrifty.yy' || echo './'`src/thrifty.yy y.tab.c thrifty.cc y.tab.h thrifty.h y.output thrifty.output -- yacc -d 
../../ylwrap: line 113: yacc: command not found 
make[3]: *** [thrifty.cc] Error 1 
make[3]: Leaving directory `/home/user/WorkDir/thrift-0.9.1/compiler/cpp' 
make[2]: *** [all] Error 2 
make[2]: Leaving directory `/home/user/WorkDir/thrift-0.9.1/compiler/cpp' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/user/WorkDir/thrift-0.9.1' 
make: *** [all] Error 2 
[email protected]:~/WorkDir/thrift-0.9.1> 
+0

您的系統上沒有安裝yacc。 'yacc:找不到命令'這很清楚。 – john

+0

我正在使用openSUSE,請你告訴我如何安裝yacc。 – Sameera

+0

對不起,我不知道答案。但快速谷歌,我發現這個http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/424461-yacc-lex-tool-reg.html – john

回答

1

Thrift網站上有兩個資源值得閱讀,當有人遇到這樣的麻煩時。

The Requirements給出了一個很好的依賴關係概述; Building From Source頁面簡要介紹構建步驟和配置開關。此外,需求頁面還包含一些鏈接,指向在Ubuntu,CentOS,Windows和OS X上構建的更多特定信息。