# Mysql2 gem instalmlation on Ubuntu 10.04/Windows XP having Ruby 1.9.2

**URL:** <https://www.ruby-forum.com/t/mysql2-gem-instalmlation-on-ubuntu-10-04-windows-xp-having-ruby-1-9-2/194647>\
**Category:** Rails\
**Created:** [September 8, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/mysql2-gem-instalmlation-on-ubuntu-10-04-windows-xp-having-ruby-1-9-2/194647 "2010-09-08T14:31:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![javix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@javix](https://www.ruby-forum.com/u/javix)\
**Post date:** [September 8, 2010, 2:31pm UTC](https://www.ruby-forum.com/t/mysql2-gem-instalmlation-on-ubuntu-10-04-windows-xp-having-ruby-1-9-2/194647/1 "2010-09-08T14:31:28Z")

</div>

Can anybody explain/post a valid link to/confirm the possibility for  
installation of mysql2 gem. I can install it neither on Windows XP x32/  
x64 nor on Ubuntu (10.04 via RVM) having Ruby 1.9.2. version. Thks

---

<div class="post-metadata">

**Author:** ![javix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/6a8cbe/32.png) [@javix](https://www.ruby-forum.com/u/javix)\
**Post date:** [September 9, 2010, 9:08am UTC](https://www.ruby-forum.com/t/mysql2-gem-instalmlation-on-ubuntu-10-04-windows-xp-having-ruby-1-9-2/194647/2 "2010-09-09T09:08:30Z")

</div>

I solved the problem - libmysqlclient-dev package should be installed.  
After that run the command:

rvm 1.9.2-head gem install mysql2

and your are done.
