Recent

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

XakeR

  • New Member
  • *
  • Posts: 10
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: 3181
  • 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: 10
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

  • Full Member
  • ***
  • Posts: 192
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.
Win7 Ultim x64/Deb 10 amd64 GTK3:
Lazarus x32 2.1(r.62009); FPC 3.3.1 (r.43150),
IBX by -Rik-; FB 3.0.4

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