"cannot load such file -- ffi_c" error in AWS Lambda ruby - Ruby version 2.5.0

Hello,
I am getting this error
“errorMessage”: “cannot load such file – ffi_c”,

In my aws ruby lambda when I try to require a gem that uses
gem ‘typhoeus’, ‘1.3.0’

Can anyone please suggest what am I missing. My ruby lambda handler starts with an warning

Ignoring ffi-1.15.3 because its extensions are not built. Try: gem pristine ffi --version 1.15.3
Any leads on this are much appreciated. Thanks

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs