Recent

Author Topic: Installing Lazarus 2.0.4 on Debian 10  (Read 3730 times)

XakeR

  • New Member
  • *
  • Posts: 14
Installing Lazarus 2.0.4 on Debian 10
« on: October 22, 2019, 01:57:21 pm »
I describe this scenario as when installing from packages ".deb " most often, different errors were obtained.
My fastest way to install Lazarus on Debian 10:

1. Go to the official website:
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/
select the latest version and download packages fpc-laz* and fpc-src*, as of this writing, the latest version:
Lazarus_2.0.4 and package versions:
fpc-src_3. 0. 4-2_amd64.deb
fpc-laz_3. 0. 4-1_amd64.deb.

2. Package installation:
In the console execute:
sudo su
mkdir /lazarus/
dpkg -i fpc-src_3. 0. 4-2_amd64.deb fpc-laz_3. 0. 4-1_amd64.deb


3. Installing Lazarus:
Now you need to get the Lazarus source code from SVN, to do this, run in the console:
cd /lazarus/
svn checkout https://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_4


4. Lazarus Build:
cd /lazarus/lazarus_2_0_4/
make clean bigide


5. Start Lazarus:
/lazarus/lazarus_2_0_4/startlazarus

Additional useful links
https://wiki.freepascal.org/Installing_Lazarus_on_Linux

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Installing Lazarus 2.0.4 on Debian 10
« Reply #1 on: October 22, 2019, 02:02:57 pm »
Hello XakeR,
Welcome to the forum.

Thank you for sharing your way to install Lazarus on Debian 10. I believe it will work on many Debian derivatives too.

XakeR

  • New Member
  • *
  • Posts: 14
Re: Installing Lazarus 2.0.4 on Debian 10
« Reply #2 on: October 22, 2019, 02:36:24 pm »
Hi Handoko, yes I think so, too, but I can say with confidence so far only about Debian 10.
In case there are any problems with fpc or lazarus in the system,
I can recommend to perform a complete removal of the packages (if they were installed) lazarus, fpc, fpc-src and fpc-laz, command:
apt purge lazarus fpc fpc-src fpc-laz
And also delete in case they exist files:
rm /etc/fpc* /etc/fppkg/ -R
And repeat the installation according to the instructions above.

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: Installing Lazarus 2.0.4 on Debian 10
« Reply #3 on: October 24, 2019, 06:18:53 pm »
@XakeR
If you know Linux (Debian) very well, I can advise you to write a script to install trunk versions of fpc and lazarus. I think that many users (and I, too) on this forum would thank you.
I wrote such a script for myself for Windows. And it saves me a lot of time. If anyone is interested, I can show the code of the bat file.
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

ChPr

  • New Member
  • *
  • Posts: 48
Re: Installing Lazarus 2.0.4 on Debian 10
« Reply #4 on: December 19, 2019, 11:44:23 am »
I describe this scenario as when installing from packages ".deb " most often, different errors were obtained.
My fastest way to install Lazarus on Debian 10: ...

Do you think this method is ok to install Lazarus on a Raspberry Pi 3B+ with Buster ?

Best regards.

Pierre.

 

TinyPortal © 2005-2018