Find the answer to your Linux question:
Results 1 to 8 of 8
I can't seem to run executables. When I click them, nothing happens. What program should I open them with? How can I run them from the command line? Edit: Some ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Location
    USA
    Posts
    61

    Running Exectutables

    I can't seem to run executables. When I click them, nothing happens. What program should I open them with? How can I run them from the command line?
    Edit: Some execs do open (gimp just opened from usr/bin, the only one I found that opened). Most don't, including my C++ programs made in Anjuta.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,095
    If you are referring to Windows executables, you'll need to run them under WINE:

    Wine HQ
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Location
    USA
    Posts
    61
    No, I am not referring to .exe I am referring to Linux files that say "executable" as file type.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Open Terminal OR Press Alt+F2. Type exact name of Executable and hit enter key.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Jul 2007
    Location
    USA
    Posts
    61
    Quote Originally Posted by devils_casper View Post
    Open Terminal OR Press Alt+F2. Type exact name of Executable and hit enter key.
    I didn't realize I had to type the whole path name! Why can't I just click them then?

  6. #6
    Linux Newbie Tutku's Avatar
    Join Date
    Jul 2007
    Location
    Izmir / Turkey
    Posts
    167
    you can run executables by clicking them but at fisrt be sure , you have changed that files permissions.
    with
    Code:
    chmod +x file_name
    command you can set that files permission for running. You can run it by clicking now.

    EDIT:
    There is an alternative info about this topic.

  7. #7
    Just Joined!
    Join Date
    Jul 2007
    Location
    USA
    Posts
    61
    I just happened to be reading about chmod in my Linux book as I read your post. That is not the problem, all users have permission to execute. I have no problem opening files from the terminal, its clicking them thats the problem now. I tried setting the default program as the terminal, but I don't know where the terminal actually is on the computer, all I have is a shortcut.

  8. #8
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Right. So the thing is, if you click a program, it gets executed. But if the program is text-based, then it won't appear anywhere (unless you started X from a terminal somewhere, in which case, it will appear in that terminal). So if it's a commandline program, you want it to run in a terminal.

    I believe that the Gnome terminal is called gnome-terminal, and the KDE one is called konsole. If you type, from the terminal, "which gnome-terminal" or "which konsole", it will tell you the absolute path of that program.

    Now, as I recall, with Gnome, if you run an executable from Nautilus, it would ask you if you want to run it in a terminal. I personally advise that if you're going to run a commandline program, just open up a terminal and run it yourself.
    DISTRO=Arch
    Registered Linux User #388732

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...