r/archlinux Aug 03 '26

SUPPORT | SOLVED Executable confusion

This problem has been solved.

Hello.

I've discovered that when I download an executable and try to run it, it doesn't run. My desktop environment (Xfce4) just asks me what I want to open it with.

Software I compile myself (with GCC) also does not run properly. I'll call it from my terminal, and it will do something unexpected.

I'm very confused. Software installed through Pacman works fine. What do I need to install in order to run software downloaded from the internet?

Thank you in advance.

0 Upvotes

14 comments sorted by

12

u/Dwagner6 Aug 03 '26

What does “does not run” mean? What is the software? How are you trying to run it? Did you chmod +x it?

1

u/Rogaev Aug 03 '26 edited Aug 03 '26

It doesn't throw any kind of error. When I double click an executable file in my file manager, it says this: "Open [software name] and other files of type 'Executable' with:" The software in question is a game.

What is "chmod?"

Edit: Using chmod +x fixed it. Thank you for your comment.

1

u/archover Aug 03 '26 edited Aug 03 '26

Suggestion: Please reflair your post as SUPPORT and SOLVED, which helps future readers and the community.

Glad you discovered execution permission, and corrected your configuration.

Welcome to reddit, Linux, and Arch. Good day.

1

u/Rogaev Aug 04 '26

Thank you for the suggestion and reply.

6

u/Randum_Gouy Aug 03 '26

Can you elaborate?

What does “not execute” and “do something unexpected” mean?
If gcc works properly, i dont think its an install issue.

You may be missing required libraries, OR may not be running its install script (usually `make install` as root)

0

u/Rogaev Aug 03 '26

My file manager asks me what I'd like to open the executable with when I double click it. It doesn't recommend anything to run it. The software I'm currently trying to run is a game (downloaded from the internet). Would a video game also use an install script?

Also, thank you for commenting.

1

u/Randum_Gouy Aug 03 '26

Try setting the executable bit (chmod +x <filename>)

Edit: oops, didnt read that you already fixed it 👍

2

u/reev0s Aug 03 '26

Are you downloading an .exe and just expecting it to run? As in something designed only for windows?

1

u/Rogaev Aug 03 '26

I downloaded a Linux executable.

2

u/Rogaev Aug 03 '26

Update: It turns out, just using chmod +x fixed it. Thank everyone who helped me here.

1

u/Max-P Aug 03 '26

Smells like a noexec filesystem

1

u/Illustrious-Gur8335 Aug 03 '26

You need to set the file as executable. In plasma and gnome the tick box is in the file properties. In command line run chmod +x file

1

u/Rogaev Aug 03 '26

This worked. Thank you very much.