Recent

Author Topic: ubuntu 24.04 install ZEOS zcomponentdesign.lpk error " "laz.virtualtrees.pas"  (Read 1609 times)

smerps

  • Newbie
  • Posts: 1
ubuntu 24.04 with LAZARUS 3.0,   canot install any ICL, with error  Unable to find file "laz.virtualtrees.pas".



for test :   
https://github.com/frones/ZeosLib/releases/tag/8.0.0-stable
canot install zcomponentdesign.lpk

full errors:   

Unable to find file "laz.virtualtrees.pas".
If it belongs to your project, check search path in
Project -> Compiler Options -> Search Paths -> Other Unit Files. If this file belongs to a package, check the appropriate package compiler options. If this file belongs to Lazarus, make sure compiling clean. If the file belongs to FPC then check fpc.cfg. If unsure, check Project -> CompilerOptions -> Test



thanks for all helps.


TRon

  • Hero Member
  • *****
  • Posts: 3742
ubuntu 24.04 with LAZARUS 3.0,
Lazarus itself is at version number 3.4. Don't let your distro dictate the version number to use.

Quote
canot install any ICL, with error  Unable to find file "laz.virtualtrees.pas".
Access right issues.

Your package manager installs Lazarus in a directory with limited access rights. Installing a package in lazarus requires Lazarus to be rebuild. If everything works as it should be working in Lazarus then Lazarus figures out that it can't access the installation directory and falls back to the configuration directory. Unfortunately that doesn't always work as expected (there are several reasons for that and the devs are working on that ).

Remedy: install Lazarus into user-space.
I do not have to remember anything anymore thanks to total-recall.

dbannon

  • Hero Member
  • *****
  • Posts: 3174
    • tomboy-ng, a rewrite of the classic Tomboy
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

tri-ton

  • Newbie
  • Posts: 1
Managed to solve the same issue on Kubuntu 24.04 by installing Lazarus 3.6 with three deb packages from the official link: https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%203.6/

Access right issues.
Probably already doesn't matter, but this doesn't seem to be the reason. With Lazarus 3.0 from the distro repos I managed to overcome the errors with "laz.virtualtrees.pas" and some other components by manually copying components of packages virtualtreeview and lclextensions to the locations where Lazarus expected them to be; checked those via Tools > Cofigure "Buid Lazarus" > Information. But several steps later things started to be too complicated.

TRon

  • Hero Member
  • *****
  • Posts: 3742
Probably already doesn't matter, but this doesn't seem to be the reason.
Indeed, It is not the only reason. there are actually two (and to be even more precise even 3). The major one being that the compiler sometimes (wrongfully) indicate that the checksum has changed of a compiled unit and tries to rebuild that unit. At second stage it tries to place the rebuilded unit at a non-writeable location.

The third reason has to do with the order in which some units are included (and this becomes complicated pretty fast).

I always install my FPC and Lazarus in user space and literally never have I experienced this issue (well, the issue is there but in my case the compiler is actually able to perform al the actions. If you like to have more details then dive into the bug-tracker (both FPC and Lazarus). As of today it still seems to be an issue for some platforms.
« Last Edit: January 11, 2025, 07:09:14 pm by TRon »
I do not have to remember anything anymore thanks to total-recall.

 

TinyPortal © 2005-2018