我在64位的Mac上遇到了这个错误,并且我的机器上已经安装了Xcode。
Building native extensions. This could take a while...
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.
/Users/jreddy/.rvm/rubies/ruby-1.8.7-p302/bin/ruby extconf.rb
checking for ffi.h in /usr/local/include... no
checking for rb_thread_blocking_region()... no
checking for ruby_thread_has_gvl_p()... no
checking for ruby_native_thread_p()... no
checking for rb_thread_call_with_gvl()... no
creating extconf.h
creating Makefile
make
sh: make: command not found
xcode-select --install
命令,检查是否已安装 XCode 命令行工具。来源:https://github.com/ffi/ffi/issues/937#issuecomment-1073265562 - Chaki_Black