Recent

Author Topic: Where should my program get installed?  (Read 6072 times)

Martin V

  • Full Member
  • ***
  • Posts: 139
Where should my program get installed?
« on: July 15, 2010, 11:42:20 pm »
I've generated a new Linux program executable with Lazarus. There's some additional stuff for my program (a folder with HTML Help, a readme.txt file and so on). In Windows, all things are located in e.g. C:\Programs\MyProgram. In Linux, the executable and the related other stuff is located in different locations. What is the common way to install? How can the executable find the related other files?

I assume, there's a difference between programs which should be accessible in the terminal and programs which are executed via icon.

On my Ubuntu system, I have seen that lots of program executables are stored into

/usr/bin

and the related stuff is located in a folder which resides in
/usr/share

Is this a common behaviour in Linux? If yes, I could generate a zipfile for installation which holds /usr/bin/myprogram and /usr/bin/myprogram/*otherstuff.

Martin V.

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Where should my program get installed?
« Reply #1 on: July 16, 2010, 01:20:10 am »
Quick answer: in depends on the Linux distro but in general, as your program <the_program> is not part of the distro itself, if it is to be shared by all users then you should install its files into a folder named <the_program> in one of the directories /usr/local/, /usr/local/library, or /usr/local/share.
« Last Edit: July 16, 2010, 01:41:44 am by Troodon »
Lazarus/FPC on Linux

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1222
    • Burdjia
Re: Where should my program get installed?
« Reply #2 on: July 27, 2010, 12:28:40 pm »
Here you have the Filesystem Hierarchy Standard which is used by most POSIX-like systems. It explains where to put executables, data and configuration files.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018