LIRC uses a client/server model. irexec is a client, and to run it you must first start the lirc server, "lircd". After that, irexec will be able to connect.
I think that there is a sample .lircrc file somewhere in the source tree (probably under doc/) and I seem to remember they have something about it on their website too (
www.lirc.org)
good luck!