1

I want to execute a program in Ubuntu 12.04...but when I type

./programname.exe

it makes error:

bash: ./gbat.exe: Permission denied

and I typed "chmod +x programname.exe" , but it doesn't fix that... Can you help me?

5
  • 1
    .exe is a Windows program which cannot be executed on Linux without Wine. sudo apt-get install wine and then try wine progarmme.exe
    – aroll605
    Apr 25, 2015 at 16:32
  • @aroll605 Write an answer :) But an exe file does not have to be a Windows program. This happened already with DOS.
    – A.B.
    Apr 25, 2015 at 16:42
  • An exe file can also be a Mono/.NET program. Apr 25, 2015 at 17:13
  • 1
    It could also be a PNG image, or MP3 file. The only way to know for sure is to use the file command on it.
    – Doorknob
    Apr 25, 2015 at 20:24
  • thank you friends, I guessed that it happens because my program rests on NTFS...So I changed the directory, and I copied that to home...and now, it works :)
    – tahami
    Apr 29, 2015 at 9:58

1 Answer 1

4

The program you are trying to execute seems to be for the Windows platform. If you do a file programname.exe you will get information about the file. Example:

file Setup.exe
Setup.exe: PE32 executable (GUI) Intel 80386, for MS Windows

This means it will not execute unless you have a working Windows system (dual boot, inside a virtual container or maybe with WINE).

This is probably the gamebook authoring tool? twinery should be similar and can be used on-line. And we also have this topic: Is there any program designed for writing a book?

The chmod command will only work on programs that are made for Linux.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .