On Ubuntu and Debian systems you will need the Firebird development headers   



sudo apt-get install firebird2.5-dev

See the issue when is not installed 
http://mapopa.blogspot.com/2012/03/migrations-do-work-with-rubyfb.html?showComment=1334011301766#c519190670027115424