Recent

Author Topic: Perfect Lazarus Install  (Read 1643 times)

ynys_pas

  • New member
  • *
  • Posts: 6
Perfect Lazarus Install
« on: September 07, 2021, 10:55:19 pm »
Have recently installed lazarus on linux lite which is debian-ubuntu based by downloading the three deb files from sourceforge

lazarus-project_2.0.12-0_amd64.deb
fpc-laz_3.2.0-1_amd64.deb
fpc-src_3.2.0-1_amd64.deb

using synaptioc to install GNU Debugger (gdb)
then installing the above deb files using sudo dpkg -i *

Lazarus works, using fpc from the command line works and and the retro but lovely fp ide works ie everything compiles.

As to the point of the post, my other attempts at installation using mainly the distros ‘software centre’ or pakage manager have not been entirely successful leading to compile errors: can’t find system file or can’t find CRT or warning did you forget -T?

Lazarus/free pascal is a fantastic asset for linux either for command line utilities or something more gui based but it would be a pity if inexperienced users were put off by unsuccessful installs. So efforts by the community to make the install foolproof would be great.

MarkMLl

  • Hero Member
  • *****
  • Posts: 3511
Re: Perfect Lazarus Install
« Reply #1 on: September 07, 2021, 10:59:16 pm »
The "did you forget -T" is benign, the FPC developers have had to make some tricky decisions at various times to support multiple versions of linker and that's a side-effect with some combinations. Generally speaking I install the prerequisites as standard Debian packages, then compile FPC and Lazarus from (stable) sources.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

prof7bit

  • Full Member
  • ***
  • Posts: 144
Re: Perfect Lazarus Install
« Reply #2 on: October 02, 2021, 08:20:51 pm »
The distro packages are notoriously outdated / incomplete / outright wrong. Whenever I meet someone who is trying to (or has already) installed these packages I advise them to completely wipe them from their system, along with every little trace they might have left,

and then:

* Download fpcupdeluxe
* Use the above to install everything from source with one mouse click.
* keep it updated with one mouse click.
* recompile compiler and RTL with debug symbols of needed
* install any cross compiler you might ever want with just a few mouse clicks
* install additional branches without impacting the installed one
* etc.

IMHO this is the one tool you absolutely need. And it also works for your Windows friends.
« Last Edit: October 02, 2021, 08:23:43 pm by prof7bit »

 

TinyPortal © 2005-2018