Forum > LCL
ubuntu 24.04 install ZEOS zcomponentdesign.lpk error " "laz.virtualtrees.pas"
(1/1)
smerps:
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:
--- Quote from: smerps on August 01, 2024, 01:23:41 am ---ubuntu 24.04 with LAZARUS 3.0,
--- End quote ---
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".
--- End quote ---
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.
dbannon:
https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source
:)
tri-ton:
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/
--- Quote from: TRon on August 01, 2024, 01:41:24 am ---Access right issues.
--- End quote ---
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:
--- Quote from: tri-ton on January 11, 2025, 11:29:33 am ---Probably already doesn't matter, but this doesn't seem to be the reason.
--- End quote ---
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.
Navigation
[0] Message Index