Where did you install Mame and what command are you typing to launch it?
A segmentation error typically occurs if you have not changed to the directory of the mame executable first. So be sure that you run the command from inside this directory, and then keep everything crossed and it shoudl work.