Ruby build error

Thanks @diogoribeiro! You saved my day!

Just recently, we started to see our Ruby builds failing with the exact same error message.

Rebuild without cache solved the issue as @diogoribeiro suggested.

Here’s the full error message:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/home/ubuntu/sharetribe/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.14/ext/ffi_c
/opt/circleci/ruby/ruby-2.3.1/bin/ruby -r ./siteconf20170411-20269-nst4mf.rb
extconf.rb
/opt/circleci/ruby/ruby-2.3.1/lib/ruby/2.3.0/rubygems/stub_specification.rb:113:in
`initialize': No such file or directory @ rb_sysopen -
/home/ubuntu/sharetribe/vendor/bundle/ruby/2.3.0/specifications/hiredis-0.6.1.gemspec
(Errno::ENOENT)
from
/opt/circleci/ruby/ruby-2.3.1/lib/ruby/2.3.0/rubygems/stub_specification.rb:113:in
`open'
from

...

Gem files will remain installed in
/home/ubuntu/sharetribe/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.14 for inspection.
Results logged to
/home/ubuntu/sharetribe/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.14/gem_make.out

An error occurred while installing ffi (1.9.14), and Bundler cannot
continue.
Make sure that `gem install ffi -v '1.9.14'` succeeds before bundling.

bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without=development returned exit code 5

Action failed: bundle install

Here’s the link to the build: https://circleci.com/gh/sharetribe/sharetribe/3180#tests/containers/1

Just guessing, but since we are using Ubuntu 14.04, could this be related to the latest build image update: Ubuntu 14.04 Build Image Update 201704-02 ?