Lazarus directory permissions on Linux and Unix: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | ### Common misconceptions | |
| 2 | 2 | ||
| 3 | 3 | When you install Lazarus on a *nix system ([[Portal:Linux|Linux]], [[Portal:FreeBSD|FreeBSD]], [[Portal:Mac|macOS]]), using your distro's package system, Lazarus binaries and source files are installed in a location where typically only root has write access. | |
| 4 | 4 | ||
| 5 | 5 | Somehow this fact has lead to the misconception that a user without root privileges cannot rebuild Lazarus (which is done when you install new packages), and therefor one would need to change the Lazarus directory permissions.\ | |
| 6 | 6 | This, however is ***definitely not*** true. | |
| 7 | 7 | ||
| 8 | 8 | When you rebuild Lazarus in this scenario, Lazarus will detect that it does not have write access to the place where the Lazarus binary is installed. It will then build the new Lazarus in a subfolder of the [[pcp|primary config path]]. When the IDE has finished building the new Lazarus binary, it will launch [[startlazarus]]. The startlazarus application will detect that there is a more recent lazarus binary somewhere in your primary config path and it will launch that binary instead of the original one | |
| 9 | 9 | ||
| 10 | 10 | This is also the reason why it is better to start Lazarus by means of the `startlazarus` application. | |
| 11 | 11 | ||
| 12 | 12 | #### Possible problems when trying to rebuild Lazarus in this scenario | |
| 13 | 13 | ||
| 14 | - | ||
| 14 | + | When rebuiling the IDE, you should not select the "Clean all" options in the "Configure Build Lazarus" dialog, because this option will try to delete (amongst others) all of Lazarus' .ppu files, to which you do not have write access. | |
| 15 | 15 | ||
| 16 | 16 | ### If you want to modify the Lazarus source code | |
| 17 | 17 | ||
| 18 | 18 | Users that want to be able to modify the Lazarus source code (e.g. for fixing bugs and helping us improving Lazarus) should install the Lazarus sources in a subfolder of their home directory and build Lazarus from source (see [[Getting Lazarus|getting]] and [[Getting Lazarus|compiling an running Lazarus]]). | |
| 19 | 19 | ||
| 20 | 20 | This is a common *nix practice. | |
| 21 | 21 | ||
| 22 | 22 | --- | |
| 23 | 23 | *From the Free Pascal wiki, page "Lazarus directory permissions on Linux and Unix", as it stood on 2019-12-23 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
