Finally i got urweb-mode working in mac. I think there is an error in brew. I installed using urweb using brew and installed again from the latest distribution (not using brew this time) and emacs is working just fine. thanks, -Jeevjyot.