Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to install mame on Linux, and the icons appear inside the game folder (xmame, xmame.sdl, xmame.x11) but none of them would run. What is the problem?

Edit: It says they are read-only, but I cannot change permissions, it says, because I am not the owner. So what should I do? Run sudo command?

share|improve this question

migrated from stackoverflow.com Jul 6 '11 at 3:52

This question came from our site for professional and enthusiast programmers.

Try running the game's binary from command line (terminal) and observe any errors in output. – alex Jul 6 '11 at 6:56

The most likely cause (and the simplest to rectify) is that the xmame file doesn't have it's executable bit set, so check that the permissions include an x for you or your group.

Other issues will require more detail from you. You should update the question with symptoms as 'would not run' could cover a multitude of sins.

share|improve this answer

When I need to install XMAME, I learnt a lesson if you need xmame please install a front end highly configurable please try to install KXMAME (http://sourceforge.net/projects/kxmame/) and you can take all control for XMAME.

share|improve this answer

Yes you should run sudo to change the permissions, but don't try to run the app because it could be insecure:

In order to change the owner you should run in a root shell:

#chown -R [user] ./fileordirectory

In order to add exexution permision you should run in a root shell:

#chmod +x ./file

Edit: You said:

"and the icons appear inside the game folder"

Are you clicking on the icons? That could be the problem -- you should click on the executable files, which normally don't have icons in Linux. If that doesn't work, you should try to set the executable permissions.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.