[Lazarus] How to install additional components in Lazarus IDE?

Mattias Gärtner nc-gaertnma at netcologne.de
Fri Sep 24 10:59:49 CEST 2010


Zitat von Frank Church <vfclists at gmail.com>:

> If I want to add components to Lazarus in Ubuntu, do I have to run as root,
> or by using sudo lazarus?

Normally neither, you run it as normal user like any other program.

> Is there a way of installing components only for your user account, or do
> they all have to be part of the main installation?

1. You only need to install a package if you need components in the palette.
2. Installing a package means creating a new lazarus executable.
3. When the current user has no rights to change the currently running  
lazarus executable the IDE puts the new executable into ~/.lazarus/bin/.
4. The tool 'startlazarus' automatically starts the right executable.

That means:
If you want to install lazarus on a multi user system, install it as  
root under /usr/share/lazarus (for example the debian/ubuntu/rpm  
packages do this).
A user should use startlazarus to start the IDE. (The debian/.../rpm  
packages create menu entries doing this).
A user can install/uninstall packages. This will create her own new IDE.


Mattias







More information about the Lazarus mailing list