Recent

Author Topic: Lazarus Instalation Errors when using dpkg -i on linux Debian  (Read 442 times)

Aruna

  • Hero Member
  • *****
  • Posts: 627
Hi, I tried to download and install Lazarus from: https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%204.0RC2/ and FPC instals oh-kay so does the laz-source but when it came to the IDE it choked. Fist time I have had trouble installing from a*.deb. The screenshot is attached. Then I tried to install 3.8 same error.

TRon

  • Hero Member
  • *****
  • Posts: 4282
Re: Lazarus Instalation Errors when using dpkg -i on linux Debian
« Reply #1 on: March 24, 2025, 06:06:13 pm »
The deb packages are compressed with zst. Linux distributions such as f.e. Debian bookworm (or derivatives) supports that out of the box.

What Linux distribution was used for installation and what version of FPC does that Linux version ship with ?

Easiest path:
- install FPC 3.2.2 from your distro
- download Lazarus sources (zip/gzip directory from sourceforge) and extract
- build lazarus from source with executing "make bigide" in extracted lazarus archive directory.
- move the (compiled) directory to anywhere you want lazarus situated on the machine
- make sure to set the pcp directory before launching (start)lazarus. The pcp path should be unique for each Lazarus "installation".

If the plan is to have having multiple installed versions of FPC then first step is required to be done manually as well (which is a tad more difficult to accomplish, FPCUpDeluxe can be of help there).
Today is tomorrow's yesterday.

Aruna

  • Hero Member
  • *****
  • Posts: 627
Re: Lazarus Instalation Errors when using dpkg -i on linux Debian
« Reply #2 on: March 24, 2025, 08:28:45 pm »
The deb packages are compressed with zst. Linux distributions such as f.e. Debian bookworm (or derivatives) supports that out of the box.

What Linux distribution was used for installation and what version of FPC does that Linux version ship with ?

Easiest path:
- install FPC 3.2.2 from your distro
- download Lazarus sources (zip/gzip directory from sourceforge) and extract
- build lazarus from source with executing "make bigide" in extracted lazarus archive directory.
- move the (compiled) directory to anywhere you want lazarus situated on the machine
- make sure to set the pcp directory before launching (start)lazarus. The pcp path should be unique for each Lazarus "installation".

If the plan is to have having multiple installed versions of FPC then first step is required to be done manually as well (which is a tad more difficult to accomplish, FPCUpDeluxe can be of help there).
HI @TRon, the attached screen shot has all the answers to your questions and also has the output after following your instructions and running make bigide. I have so many thing's on this system I am frankly surprsed it works at all conisdering the things I have done to it over time. Maybe it is time to get a new hard drive and start fresh?

TRon

  • Hero Member
  • *****
  • Posts: 4282
Re: Lazarus Instalation Errors when using dpkg -i on linux Debian
« Reply #3 on: March 24, 2025, 10:19:44 pm »
HI @TRon, the attached screen shot has all the answers to your questions and also has the output after following your instructions and running make bigide.
As suspected Debian 11 which dpkg does not support that compression format. I don't believe it is back-ported either but not sure as I have moved on to debian 12 (bookworm) the moment bookworm became stable.

Quote
I have so many thing's on this system I am frankly surprsed it works at all conisdering the things I have done to it over time. Maybe it is time to get a new hard drive and start fresh?
In case it is not too much of a burden then yes, please start over with a fresh Linux install.

When time to add FPC and/or Lazarus, do not use the package manager or.deb files to install FPC/Lazarus but use FPCUPDeluxe instead. At least to install FPC into user-space (home directory comes to mind). FPCUpDeluxe's FPC installation makes sure that FPC is completely stand-alone by using a shell script and forced fpc.cfg configuration file. That way you could in the future install/use multiple versions of FPC. Only thing required is to have that FPCUpDeluxe fpc.sh script either in the path or create a shell alias or link in order to be able to start free-pascal from the commandline.

If that is done and works as expected then Lazarus can be build from source with "make FPC=/path/and/name/of/script/fpc.sh bigide".

If one sticks to that method of installation then any reference of default locations for fpc.cfg files and FPC searching units/sources in system directories indicate that something is amiss (instead of now having no clue what happened by whatever installation).

I have no clue as how to fix the current issues you are confronted with. I know how to work around it in case necessary but I would highly suggest to start anew with the things I wrote in mind.
Today is tomorrow's yesterday.

 

TinyPortal © 2005-2018