報錯截圖:
原因: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
安裝成功!!!