rbhive
rbhive copied to clipboard
couldn't install rbhive using 'gem install ...'
localhost:ext liuxiao$ gem install rbhive
Building native extensions. This could take a while... ERROR: Error installing rbhive: ERROR: Failed to build gem native extension.
No such file or directory - getcwd
Gem files will remain installed in /Users/liuxiao/.rvm/gems/ruby-2.2.2/gems/thrift-0.9.0 for inspection. Results logged to /Users/liuxiao/.rvm/gems/ruby-2.2.2/extensions/x86_64-darwin-14/2.2.0/thrift-0.9.0/gem_make.out
I encounter a similar error and fixed by
gem install rbhive -v 1.0.3.pre
Because thrift 0.9.0 can't build with ruby 2, see https://issues.apache.org/jira/browse/THRIFT-2219. Thrift 0.9.2 is fixed.
Thanks @john1king !