Recent

Author Topic: Laz2.0 under Buster (arm) - issue  (Read 377 times)

krolikbest

  • Sr. Member
  • ****
  • Posts: 262
Laz2.0 under Buster (arm) - issue
« on: May 26, 2025, 10:13:16 am »
Hi, I wanted to install default version of Lazarus under Buster on RPi 3B+. With install process it went ok, but while trying to install some external components (let's say LazSerial) I got error telling me that
Quote
lazarus.pp(1.1) fatal: cannot find fpdebug by Lazarus. Check if package fpdebug creates fpdebug.ppu...
:(
How to avoid this issue? I do not want to install some newer version of Laz.?

Regards,
Martin

Thaddy

  • Hero Member
  • *****
  • Posts: 17368
  • Ceterum censeo Trump esse delendam
Re: Laz2.0 under Buster (arm) - issue
« Reply #1 on: May 26, 2025, 10:39:06 am »
I suppose that if you would use both fpc and lazarus from the buster repositories it should work.
I have quite some 3B+ running and encountered no problems in such a case.
That said, my 3B+'s are pretty much left alone because they run production code like Pihole and such or devices.
Also note I always add backports. May be not what you want.
« Last Edit: May 26, 2025, 10:42:17 am by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

krolikbest

  • Sr. Member
  • ****
  • Posts: 262
Re: Laz2.0 under Buster (arm) - issue
« Reply #2 on: May 26, 2025, 10:41:59 am »
Despite it is fresh installation of Buster, unfortunateli I did :(

Thaddy

  • Hero Member
  • *****
  • Posts: 17368
  • Ceterum censeo Trump esse delendam
Re: Laz2.0 under Buster (arm) - issue
« Reply #3 on: May 26, 2025, 10:44:08 am »
Can you show me exactly how you did install? Then I can compare to mine' s.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

krolikbest

  • Sr. Member
  • ****
  • Posts: 262
Re: Laz2.0 under Buster (arm) - issue
« Reply #4 on: May 26, 2025, 10:51:46 am »
I did simply


Quote
sudo apt update
sudo apt upgrade
reboot
sudo apt install fpc
sudo apt install lazarus



That's all.

rvk

  • Hero Member
  • *****
  • Posts: 6799
Re: Laz2.0 under Buster (arm) - issue
« Reply #5 on: May 26, 2025, 10:57:48 am »
What version does apt actually install? (you can check under Help > About)
Lazarus 2.0 is really 'old'.
Did that one already come with fpdebug?

But... you say "external" component LazSerial... did you mean via OPM (Online Package Manager)?
OPM downloads latest sources and they are not guaranteed to work under older versions of Lazarus/FPC.

Only stick to the packages under Tools > Install/Uninstall packages or if you really need to download something... make sure it's a version from the same year (for Lazarus 2.0 somewhere around 2019-2021).

It would be better to just install Lazarus 4.0.

krolikbest

  • Sr. Member
  • ****
  • Posts: 262
Re: Laz2.0 under Buster (arm) - issue
« Reply #6 on: May 26, 2025, 11:17:48 am »
fpc 3.0.4
laz 2.0.0+dfsg-2
I know it is old. But it is default in Buster.

Yes, I checked in OPM (this ver of Laz comes with OPM) for LazSerial. It started downloading but when started to rebuild Laz that error occured. Now even if I try to rebuild Laz I get this error.
Ups, I didn't know that only valid packages for old version like mine, they are in Install/Uninstall. But what now?

rvk

  • Hero Member
  • *****
  • Posts: 6799
Re: Laz2.0 under Buster (arm) - issue
« Reply #7 on: May 26, 2025, 11:37:48 am »
There should be an old lazarus.old in your directory (not sure how it's named under Linux).
Rename it back to lazarus and you can start the old correct version.
Now uninstall the package you installed latest and try to recompile.

But... then you are still stuck with a version without your desired package.
Then you need to hunt down older source...

But it might be better to just go for Lazarus 4.0 (where you can install the latest packages).
You can try installing the standard .deb files from the main page or try fpcupdeluxe.

I'm not sure if the new standard .deb files are compatible with the old Buster distro.
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%204.0/

krolikbest

  • Sr. Member
  • ****
  • Posts: 262
Re: Laz2.0 under Buster (arm) - issue
« Reply #8 on: May 26, 2025, 12:21:17 pm »
Sorry, I gave up. Even choosing Tools->Configure "bild lazarus"->Buil on clean installation I get the same error. I try install on win machine something newer and add crosscompiler. Anyway thank you for help.

 

TinyPortal © 2005-2018