由于ruby rake错误,无法构建apache thrift

ako*_*nsu 6 rake thrift

我正在尝试从源代码tarball(https://dist.apache.org/repos/dist/release/thrift/0.9.0/thrift-0.9.0.tar.gz)构建thrift,但它失败并出现此错误:

Making all in rb
make[3]: Entering directory `/home/akonsu/a/thrift-0.9.0/lib/rb'
/usr/local/bin/rake 
rake aborted!
cannot load such file -- rspec/core/rake_task
Run Code Online (Sandbox Code Playgroud)

我将不胜感激任何帮助.

ako*_*nsu 11

这有助于:

gem install rspec
Run Code Online (Sandbox Code Playgroud)


Tom*_*Tom 7

如果你首先对Ruby不感兴趣,那么配置Thrift就可以了.

$ ./configure --without-ruby
Run Code Online (Sandbox Code Playgroud)

这就是--without-ruby,而--without-rb不像其他一些消息来源所说的那样.

然后运行makesudo make install.

这显然是一个已知的错误.我在这里找到了这个:https://issues.apache.org/jira/browse/THRIFT-1367

(我在Mac OS X 10.7.5,BTW上.我不知道任何其他版本/平台...)