Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-02

Clean and build as sudo?

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160224/743f0205/attachment.html>

Reply by email

Graeme Geldenhuys
to Pedro Albuquerque
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

Reply by email

Mattias Gaertner
to Pedro Albuquerque: first post here, no coding for the last 25 years, first time with Lazarus. Forgive me any…
Show quoted text 10 lines
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

Reply by email

Bo Berglund
to Pedro Albuquerque: first post here, no coding for the last 25 years, first time with Lazarus. Forgive me any…
Pedro Albuquerque wrote 7 lines
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

Reply by email

Pedro Albuquerque
to Mattias Gaertner: On Wed, 24 Feb 2016 07:00:28 +0000 Probably your installed compiler (Free Pascal) and the…

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.

Mattias Gaertner wrote 37 lines
On Wed, 24 Feb 2016 07:00:28 +0000 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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160224/1b88cdf6/attachment.html>

Reply by email