Archive

Posts Tagged ‘gems’

MySQL gem doesn’t work after upgrading Ubuntu

May 6th, 2010 Petros No comments

I upgraded Ubuntu 9.10 to 10.04. Everything was cool. I tried to work on a Rails project I am involved by issuing the command rake db:migrate to update the database.

I was getting the following error:

Error: uninitialized constant MysqlCompat::MysqlRes

Then I uninstalled the mysql gem and tried to install it again only to get the following error:

Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

Then I issued the following command:

sudo apt-get install libmysqlclient-dev

and then installed mysql gem and it installed with no problems. Finally, rake db:migrate worked again.

Categories: tips Tags: , , , , ,

PAbarcode gem

December 30th, 2009 Petros No comments

In a previous post I mentioned that I started maintaining a set of helper Ruby classes for working with barcodes. I have changed the structure of the project to make it a gem and I have published it on GemCutter.

Read more…

Categories: 2-deed Tags: , ,