Recent

Author Topic: laz.virtualtrees.pas not found on building Lazarus.  (Read 1396 times)

kapibara

  • Hero Member
  • *****
  • Posts: 654
laz.virtualtrees.pas not found on building Lazarus.
« on: January 23, 2025, 10:07:25 pm »
For anyone under Debian/Ubuntu failing to recompile Lazarus because of laz.virtualtrees.pas not found.

Reason is, if you installed Lazarus using Apt or Synaptic, that lazarus directories and files are owned by root. Change ownership to your user so Lazarus has permissions and the problem goes away:

sudo chown -R your_name:your_name /etc/lazarus/
sudo chown -R your_name:your_name /usr/lib/lazarus/
« Last Edit: January 24, 2025, 04:31:18 pm by kapibara »
Lazarus trunk / fpc 3.2.2 / Kubuntu 24.04 - 64 bit

BrainChemistry

  • Jr. Member
  • **
  • Posts: 83
Re: laz.virtualtrees.pas not found on building Lazarus.
« Reply #1 on: May 08, 2025, 01:27:49 pm »
For anyone under Debian/Ubuntu failing to recompile Lazarus because of laz.virtualtrees.pas not found.

Reason is, if you installed Lazarus using Apt or Synaptic, that lazarus directories and files are owned by root. Change ownership to your user so Lazarus has permissions and the problem goes away:

sudo chown -R your_name:your_name /etc/lazarus/
sudo chown -R your_name:your_name /usr/lib/lazarus/

Ran exactly into this. Thanks for your explanation and the solution!

Just a quick note, you should restart Lazarus before re-compiling, otherwise it still fails.

pmralbuquerque

  • New Member
  • *
  • Posts: 14
Re: laz.virtualtrees.pas not found on building Lazarus.
« Reply #2 on: November 17, 2025, 05:20:55 pm »
Thank you!
Lazarus 2.2.4
Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz   2.60 GHz RAM 16,0 GB

 

TinyPortal © 2005-2018