[Lazarus] Clean Up and Build / Fatal Error: Can't Create object file: units/i386-linux/hello.o

Mattias Gärtner nc-gaertnma at netcologne.de
Mon Jun 7 13:57:04 CEST 2010


Zitat von Peter E Williams <foss.game.pascal.developer at iinet.net.au>:

> Hi Ingo & All,
>
>>
>> Am 04.06.2010 02:21, schrieb Peter E Williams:
>> > File: hello.pp [Read-Only] (/usr/lib/lazarus/0.9.28.2/examples)
>> >
>> Hello,
>>
>> if you have installed Lazarus by packagemanager you have no permission
>> Hi Ingo & All,
>>
>> I tried to add a menu item "Superuser Lazarus" -- "sudo lazarus" with
>> a parameter I forget. I am using Ubuntu 9.04 karmic koala and I did it
>> on Ubuntu 10.04 LTS.
>>
> I tried too add a menu item "Superuser Lazarus" -- "sudo lazarus" with a
> parameter I forget. I am using Ubuntu 9.04 karmic koala and I did it on
> Ubuntu 10.04 LTS.
>
> I am obviously not running Lazarus as a superuser in the correct manner.
> What is the command to run lazarus in superuser mode??? I want 2 menu
> items - one for regular use and one for superuser. Please tell me the
> command to use.

The super user should only be used to administration and to install  
programs that can not be changed by anyone else (to protect yourself).


> Note: the guys at the computer shop advised me to run Lazarus with it's
> default config and NOT move the examples to the Home folder.

In general this correct.

But the lazarus examples are not shipped precompiled. They are only  
sources, so if you want to run them you must compile them first. They  
use as output directories a sub directory, which is write protected if  
you installed the examples as super user.
Eventually the IDE will check this and allow to redirect the output to  
a writable directory.
At the moment the easiest way is to simply copy the examples to  
anywhere in your home directory. For example copy the whole examples  
directory to your desktop directory. Then use lazarus to open the lpi  
file of one of the examples in your desktop directory and run it.


> My code is
> in:
>
> Home/Public/lazarus_source_code
>
> with folders for each project.

ok


Mattias







More information about the Lazarus mailing list