Mysql2_chef_gem not working in Ubuntu 14.04

I am using the mysql and Database cookbooks.

When I use the below resource in my cookbook

mysql2_chef_gem ‘default’ do
action :install

I am getting an error when it installs the mysql2 gem.

Ignoring mysql2-0.3.17 because its extensions are not built. Try : gen prestine mysql2 – version 0.3.17

I tried all possible solutions available in the internet . Nothing worked. Please help.