Re: [Lazarus] Clean and build as sudo?

2016-02-24 Thread Pedro Albuquerque
Lazarus (and fpc) was installed from the home page big button on the
right, with default setup:
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20i386%
20DEB/Lazarus%201.6/

I'll try installing from the packages you mention and pay some attention
to the installation folders. Thank you,
Pedro.

Qua, 2016-02-24 às 10:27 +0100, Mattias Gaertner escreveu:

> On Wed, 24 Feb 2016 07:00:28 +
> Pedro Albuquerque  wrote:
> 
> > Hi,
> > 
> > first post here, no coding for the last 25 years, first time with
> > Lazarus. Forgive me any inconvenience, please.
> > 
> > While building an application, I got this error:
> > 
> > mainwindow.pas(27,22) Error: Cannot find FileUtil used by MainWindow,
> > incompatible
> > ppu=/usr/share/lazarus/1.4.4/components/lazutils/lib/i386-linux/fileutil.ppu,
> >  package LazUtils
> 
> Probably your installed compiler (Free Pascal) and the Lazarus binaries
> do not match.
> How did you install Lazarus?
> 
> 
> > Should I run Lazarus as sudo? What are the risks?
> 
> Running and testing self written programs is risky, doing it as root
> can do havoc to your system.
> 
> > Lazarus v.1.4.4
> > Ubuntu 14.04 LTS
> 
> We provide newer Ubuntu packages (DEB) for FPC and Lazarus:
> https://sourceforge.net/projects/lazarus/files/?source=navbar
> 
> Mattias
> 
> --
> ___
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clean and build as sudo?

2016-02-24 Thread Bo Berglund
On Wed, 24 Feb 2016 07:00:28 +, Pedro Albuquerque
 wrote:

>After some investigation, I tried Clean and Build, with this error:
>
>Unable to delete file
>"/usr/share/lazarus/1.4.4/components/lazutils/lib/i386-linux/LazUtils.compiled".
>
>Should I run Lazarus as sudo? What are the risks?
>

I always install Lazarus as the user and inside user home where file
permissions are OK:
For example: ~/dev/lazarus/1.6

THen there are no problems when Lazarus needs to rebuild etc.


-- 
Bo Berglund
Developer in Sweden


--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clean and build as sudo?

2016-02-24 Thread Mattias Gaertner
On Wed, 24 Feb 2016 07:00:28 +
Pedro Albuquerque  wrote:

> Hi,
> 
> first post here, no coding for the last 25 years, first time with
> Lazarus. Forgive me any inconvenience, please.
> 
> While building an application, I got this error:
> 
> mainwindow.pas(27,22) Error: Cannot find FileUtil used by MainWindow,
> incompatible
> ppu=/usr/share/lazarus/1.4.4/components/lazutils/lib/i386-linux/fileutil.ppu, 
> package LazUtils

Probably your installed compiler (Free Pascal) and the Lazarus binaries
do not match.
How did you install Lazarus?


> Should I run Lazarus as sudo? What are the risks?

Running and testing self written programs is risky, doing it as root
can do havoc to your system.

> Lazarus v.1.4.4
> Ubuntu 14.04 LTS

We provide newer Ubuntu packages (DEB) for FPC and Lazarus:
https://sourceforge.net/projects/lazarus/files/?source=navbar

Mattias

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clean and build as sudo?

2016-02-24 Thread Graeme Geldenhuys
On 2016-02-24 07:00, Pedro Albuquerque wrote:
> Unable to delete file
> "/usr/share/lazarus/1.4.4/components/lazutils/lib/i386-linux/LazUtils.compiled".
> 
> Should I run Lazarus as sudo? What are the risks?

You really shouldn't have lazarus installed in such a "shared" location
on your system. A normal user doesn't have write access, and no, I
wouldn't recommend you running Lazarus as root.

Uninstall and maybe use a different installation method so you can
choose the destination directory. I recommend installing Lazarus in
~/devel/lazarus/ for example - where you have write access. Then you
shouldn't have this problem again.

FPC is not so much a problem installed in a shared location, because
normally you don't need to rebuild FPC. But Lazarus IDE is another story
(eg: every time you install new components in the IDE, it requires a
rebuild).

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Clean and build as sudo?

2016-02-23 Thread Pedro Albuquerque
Hi,

first post here, no coding for the last 25 years, first time with
Lazarus. Forgive me any inconvenience, please.

While building an application, I got this error:

mainwindow.pas(27,22) Error: Cannot find FileUtil used by MainWindow,
incompatible
ppu=/usr/share/lazarus/1.4.4/components/lazutils/lib/i386-linux/fileutil.ppu, 
package LazUtils

After some investigation, I tried Clean and Build, with this error:

Unable to delete file
"/usr/share/lazarus/1.4.4/components/lazutils/lib/i386-linux/LazUtils.compiled".

Should I run Lazarus as sudo? What are the risks?

Thank you in advance,
Pedro.


Lazarus v.1.4.4
Ubuntu 14.04 LTS
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus