0 0 Votes

Lazarus Application not running on Linux

Question by Guest | 05/06/2016 at 17:20

Up to now, I have only created programs for Windows. On Windows, my applications created with Lazarus are running without any problems.

Now, I have tried to compile one program on Linux. What wonder, I had not to change anything on my source code, the program immediately worked!

However, only on my computer. I have tried to run the compiled file on another Linux computer, but there, I only got Carol messages.

"Could not display ProgramName. There is no application installed for executable files." on the desktop and "Permission denied" on the terminal.

What can I do to make the application run?


Stefan Trost

Show Profile | Message
0Best Answer
0 Votes

Probably, the program file was not marked as executable.

To change this, change the terminal to the directory in which your program file is located and run the following command there:

chmod +x ProgramName

If you want to learn more about what is behind "chmod +x", you can have a look at the question why a batch script is not running automatically on Linux. There you can find an explanation.

If you want to pass programs for Linux to others in future, you should think about picking your program as DEB or RPM package. With this, your program can directly be installed and deinstalled with the Linux package manager and you do not have to care about the chmod + x thing.
06/06/2016 at 10:25

ReplyPositive Negative
00 Votes

Thank you so much! This was the error! Now it is working without any programs!

I will think about the packages thing!
06/06/2016 at 20:13

Positive Negative

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.


Ask your own question or write your own articles on askingbox.com. How to do.