Sign in Join
Wiki copytemporary

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.

OldNewLine
11### Common misconceptions
22
33When 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.
44
55Somehow 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.\
66This, however is ***definitely not*** true.
77
88When 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
99
1010This is also the reason why it is better to start Lazarus by means of the `startlazarus` application.
1111
1212#### Possible problems when trying to rebuild Lazarus in this scenario
1313
14-When rebuiling the IDE, you should <b>not</b> 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.
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.
1515
1616### If you want to modify the Lazarus source code
1717
1818Users 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]]).
1919
2020This is a common *nix practice.
2121
2222---
2323*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).*

Back to history