Recent

Author Topic: Perfect Lazarus Install  (Read 2934 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: 5136
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: 151
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 »

metis

  • Full Member
  • ***
  • Posts: 229
Re: Perfect Lazarus Install
« Reply #3 on: April 16, 2022, 02:10:01 pm »
@ynys_pas

Quote
make the install foolproof would be great
After having tried around (unsuccessfully :() to install FPC&Lazarus manually on Linux,
I totally agree with prof7bit:
The easiest and most foolproof Way to install FPC&Lazarus on diverse Platforms,
including Cross-Compiling, and even multiple Versions of FPC/Lazarus, is FpcUpDeluxe:
https://forum.lazarus.freepascal.org/index.php/topic,34645.0.html.

Source   : https://github.com/LongDirtyAnimAlf/fpcupdeluxe
Releases: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases

Some useful Links...
- Installing the Free Pascal Compiler (FPC-Wiki)
- Installing Lazarus (Lazarus-Wiki)

FpcUpDeluxe...
- fpcupdeluxe (FPC-Wiki)
  Be sure to meet the "Prerequisites" before Installing on Linux !
- FPCUPdeluxe FreePascal und Lazarus mit Cross-Compilern installieren (YouTube - Windows, German)
- Fpcupdeluxe Tutorial (How to install FPC and Lazarus using Fpcupdeluxe) (YouTube - Windows)
- How to install Lazarus IDE with FpcUpDeluxe (YouTube - Linux)
- Installing FPC and Lazarus using FpcUpDeluxe (YouTube - Linux)
  Use the generated Link to start Lazarus after Installing on Linux !

I used 'FpcUpDeluxe v2.2.0h' to install 'Lazarus v2.2.0 + FPC v3.2.2' on 'Linux Mint v17.3 32bit', and...
... it worked w/o any Problems !  :)
Life could be so easy, if there weren't those f*** Details.

 

TinyPortal © 2005-2018