Ruby MYSQL2 gem installation on windows 7

EDIT 30/09/2014 When this answer was posted the 64 bit rails installer wasn’t the recommended version – it now seems people are starting to use it more. It should be noted when you download the MySQL Connector you need to download either 64 or 32bit to correspond to the version of rails you installed. Amazingly … Read more

Impossible to Install PG gem on my mac with Mavericks

If you want to avoid using MacPorts, you can download the Postgres App and place it into the Application directory. Then, specify the location of newly downloaded pg_config: gem install pg — –with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config If you run in to missing headers problem, try specifying the include directory of the app: gem install pg — –with-pg-include=”/Applications/Postgres.app/Contents/Versions/latest/include/”

Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)

There are similar questions: `require’: no such file to load — mkmf (LoadError) Failed to build gem native extension (mkmf (LoadError)) – Ubuntu 12.04 Usually, the solution is: sudo apt-get install ruby-dev Or, if that doesn’t work, depending on your ruby version, run something like: sudo apt-get install ruby1.9.1-dev Should fix your problem. Still not … Read more