# Mysql2\_chef\_gem not working in Ubuntu 14.04

**URL:** <https://discourse.chef.io/t/mysql2-chef-gem-not-working-in-ubuntu-14-04/9220>\
**Category:** Chef Infra (archive)\
**Created:** [August 19, 2016, 7:34am UTC](https://discourse.chef.io/t/mysql2-chef-gem-not-working-in-ubuntu-14-04/9220 "2016-08-19T07:34:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreeparam](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@sreeparam](https://discourse.chef.io/u/sreeparam)\
**Post date:** [August 19, 2016, 7:34am UTC](https://discourse.chef.io/t/mysql2-chef-gem-not-working-in-ubuntu-14-04/9220/1 "2016-08-19T07:34:34Z")

</div>

I am using the mysql and Database cookbooks.

When I use the below resource in my cookbook

mysql2\_chef\_gem ‘default’ do  
action :install  
end

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.
