Forum > Linux

Install Lazarus raspberry - raspios-bullseye-arm64

<< < (6/6)

tetrastes:
What happens if you click "Restore Fppkg configuration"?

dbannon:

--- Quote from: Mi-Ki on December 29, 2023, 09:45:39 am ---
--- Quote from: tetrastes on March 07, 2023, 01:58:08 pm ---
--- Quote from: Mi-Ki on March 07, 2023, 01:54:09 pm ---version.inc  is  2.0.10+dfsg-4

--- End quote ---
This is seen from your picture. Add +b2 and try.

--- End quote ---

Hi.
I have the new raspios-bookworm + lazarus 2.2.6
sudo apt-get install fpc && sudo apt-get install lazarus
How to fix this bug?

/usr/lib/lazarus/2.2.6/ide/version.inc
'2.2.6+dfsg2-2'

Thank you.

--- End quote ---
Build Lazarus from source.
Remove, using apt, the existing lazarus and see the wiki page -
https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source
And check out the Note: about memory and swap space on the raspberry pie.
(added benefit, you can the the newly released Lazarus 3.0)

Davo

Mi-Ki:

--- Quote from: dbannon on December 30, 2023, 12:09:22 am ---Build Lazarus from source.
Remove, using apt, the existing lazarus and see the wiki page -
https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source
And check out the Note: about memory and swap space on the raspberry pie.
(added benefit, you can the the newly released Lazarus 3.0)
Davo

--- End quote ---

Remembering that if you have less than 4G ram, you must set 1G or preferably 2G of swap.
I have  Raspberry Pi 4 Model B - 4GB RAM
I installed according to the instructions and works.
I have Lazarus 3.99.  :D
Thank you.

Gustavo 'Gus' Carreno:
Hey Mi-Ki,

For future reference.

There are, at least, 4 ways one can install a FPC/Lazarus set:

* From the distro's own repositories
* From the install binaries provided by Source Forge
* From source - manually
* From source - using fpcupdeluxe
From my own experience in many distros, including the ones working on a Raspberry Pi, but not limited to, the first option is always the wrong one.
Mainly because most distros are lagging quite a lot when compared with the most current stable version released.
And, specifically, due to the small issues with version names that you encountered.

The second option should be the one a newby should always opt for.
It's easy for all the supported platforms/package managers.
Alas, there is no ARM support, YET( package managers: wink, wink, nudge, nudge ).

The third option will allow you to install in any platform that is actually supported by Free Pascal, the compiler and Lazarus the IDE.
Granted, it's not for the faint of heart and it does mean jumping through some hoops.

The fourth option is, in any case, including ARM/AARCH64, one that works, and is rather point and click.
As you can see from the 40 binaries listed on the fpcupdeluxe release page, that you're not starved from choice :D

In hopes this helps you and anyone in the future!

Cheers,
Gus

dbannon:

--- Quote from: Gustavo 'Gus' Carreno on December 30, 2023, 10:24:24 am ---There are, at least, 4 ways one can install a FPC/Lazarus set:

* From the distro's own repositories
* From the install binaries provided by Source Forge
* From source - manually
* From source - using fpcupdeluxe
--- End quote ---

Just to fine tune Gus' list there a little. Just about any distro you would sensibly install right now has a viable FPC 3.2.2 available in its repositories. So, use that, but using the same generalization, they all have an outdated Lazarus (to some degree) so don't use that. But having FPC there is the hard part, building Lazarus from source is easy.

If using a bullseye based distribution, its FPC it will be 3.2.0 and I suspect it has problems with arm64. So, a little more effort required, install FPC322 from a tarball. Install it into your home dir and set some paths. Perhaps not "easy" but well withing the average Linux user's ability. All documented on the wiki.

Davo

 

Navigation

[0] Message Index

[*] Previous page

Go to full version