How to Add Federated engine after installing Mysql
I have managed to find a solution...
there is a plugin already available at

/usr/lib/mysql/plugin/ha_federated.so

i just logged in to mysql as root and run the following query

mysql>install plugin federated soname 'ha_federated.so';

then i added federated to my.cnf and restarted mysql