报错截图:
原因:ruby版本问题,使用安装它gem install ffi -v 1.9.18 ffi要求ruby版本> = 2.0,< 2.5。当前的ruby版本为2.6.6。
解决方法: 使用命令:gem install ffi -f -v 1.9.18
安装成功!!!