Magento cookbook in ubunutu 14.04



I have running magento cookbook for ubuntu14.04,it shows apc error that get resolved Again shows libmysql package not found,so remove that for this platform,since no need libmysql for this platform.When again running it shows failure in restarting a php5-fpm service.when i ping that ip in browser it shows magento page but with mcrypt php missing error.So i enable phpenmod mcrypt and restart a php5-fpm service.Working fine.So now my query is "where to add this phpenmod mcrypt in a cookbook? Shall i add in definition of a magento cookbook.Also in definition of cookbook we cannot use platform attribute ah?Thanks,Indra