# How to get database gem installed for Windows and Netbeans?

**URL:** <https://www.ruby-forum.com/t/how-to-get-database-gem-installed-for-windows-and-netbeans/195571>\
**Category:** Rails\
**Created:** [September 25, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/how-to-get-database-gem-installed-for-windows-and-netbeans/195571 "2010-09-25T16:54:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 25, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/how-to-get-database-gem-installed-for-windows-and-netbeans/195571/1 "2010-09-25T16:54:42Z")

</div>

I change the platform from Linux to Windows and use netbeans to develop  
The problem about database creation stay still

Could not find gem ‘mysql2 (\>= 0, runtime)’ in any of the gem sources.  
Could not find gem ‘pg (\>= 0, runtime)’ in any of the gem sources.

I this problem occur because I still not install gem for database yet.  
How to install it ?

```
                                          many thanks
```

---

<div class="post-metadata">

**Author:** ![tanawatl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/58956e/32.png) [@tanawatl](https://www.ruby-forum.com/u/tanawatl)\
**Post date:** [September 26, 2010, 8:32pm UTC](https://www.ruby-forum.com/t/how-to-get-database-gem-installed-for-windows-and-netbeans/195571/2 "2010-09-26T20:32:15Z")

</div>

First install ruby and rubygems, then install necessary gems with `gem install` command.  
Btw, mysql2 gem is not working on windows, try old mysql gem.
