Forum > Linux

Perfect Lazarus Install

(1/1)

ynys_pas:
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:
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

prof7bit:
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.

metis:
@ynys_pas


--- Quote ---make the install foolproof would be great
--- End quote ---
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 !  :)

Navigation

[0] Message Index

Go to full version