If you are getting an error like the following, when running ‘bundle install’ or ‘gem install mysql2′ on Rails 3:

gem install mysql2
ERROR: Error installing mysql2:
The ‘mysql2′ native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from ‘http://rubyinstaller.org/downloads’ and follow the instructions
at ‘http://github.com/oneclick/rubyinstaller/wiki/Development-Kit’

Then read on.

From Rails v3 onwards, mysql2 has been made the default mysql gem/driver for MySql. That’s good news, as mysql2 is offering better performance over the other gem (mysql). For Windows users, however, installing mysql2 gem is going to be tricky.

Make sure you have Ruby 1.9.2, Rails 3.0.7 or greater, and you have updated your gems.

After searching around for a way to make it work, I got it installed with the following on the command prompt:

gem install mysql2 -v 0.2.6

With the following results:

Fetching: mysql2-0.2.6-x86-mingw32.gem (100%)
Successfully installed mysql2-0.2.6-x86-minw32
1 gem installed
Installing ri documentation for mysql2-0.2.6-x86-mingw32…
Enclosing class/module ‘mMysql2′ for class Client not known
Installing RDoc documentation for mysql2-0.2.6-x86-mingw32…
Enclosing class/module ‘mMysql2′ for class Client not known

Try it. Let me know your results in the comments.

Being in the field of IT (Computer Science), it\’s necessary to keep pace with the changing landscape, otherwise you would end up rendering yourself obsolete. It\’s no different with web development/programming: The landscape keeps changing, either on the user interface front or the browser side or the website back-end.

As of now, we are moving through the era of web application frameworks. That\’s the landscape we are surrounded with. Plenty of frameworks have been built during these years broadly categorized under software frameworks, web application frameworks and JavaScript frameworks (or libraries), and plenty more are being developed.

So better learn one now, before you are rendered obsolete.

I am considering the following frameworks:

image image image image Djangoimage

Read more about the most popular web frameworks that I am considering after the jump.

Read the rest of this entry »


© 2007 Zenning! | iKon Wordpress Theme by Windows Vista Administration | Powered by Wordpress