On Mon, 15 Jan 2007 13:17:19 +0100
koen <[EMAIL PROTECTED]> wrote:

> hi,
> I am trying to use lazarus as a normal user on a new installed debian
> system with 2.6 kernel runnning. I am not expierenced with linux
> (yet). As root everything works perfekt but there are problems as a
> normal user. This is what I tried until now.
> To add a component to the ide (lnet-0.4.0) I have to be root because
> of the write-permission for /usr/share/lazarus and other directories.

This should normally work, but apparently there is a bug.


> So I log in as root, startx and install the package. After lazarus
> has been rebuild and startet I can use the new component and compile
> the example program.
> Then if I login as a user and start lazarus the new installed
> component cannot be loaded because different files are not found.

The IDE searches the .lpk file of the lnet package.
Just open it once as normal user (Components -> Open package file).


> I
> then compared the .lazarus directory in /root and /home/username and
> found all the component information missing for the files in
> ~/.lazarus. So I copied the /root/.lazarus to ~/.lazarus and changed
> the owner and group to username. Lazarus startup is now without error
> and the new component is there but if I try to compile there is an
> error because a unit of the new component can not be found.

See
http://wiki.lazarus.freepascal.org/Unit_not_found_-_How_to_find_units


> Adding
> the exact path to compiler-options doesn 't change things.
> I am now using lazarus as root wich is not what I really wanted to.
> Until now I did not find any usefull information on using lazarus as
> non-root user. Can anyone show me the way to a solution?

One simple solution is:
Install lazarus in your home directory. For example:
as non root do:
cp -a /usr/share/lazarus ~/lazarus
chown $USER:$USER -R ~/lazarus

To get a clean setup, remove the config directory ~/.lazarus.
Then you can start lazarus with
~/lazarus/lazarus

You should change/add the lazarus icon to start the new lazarus
executable: /home/username/lazarus/lazarus.

You can uninstall the lazarus package (keep the fpc and fpc-src
packages).

Or use svn to get the latest and greatest:
http://wiki.lazarus.freepascal.org/Installing_Lazarus#Downloading_Lazarus_SVN


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to