How to get database gem installed for Windows and Netbeans ?

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

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.