Recent

Author Topic: Install Lazarus raspberry - raspios-bullseye-arm64  (Read 4529 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14382
  • Sensorship about opinions does not belong here.
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #15 on: March 07, 2023, 12:23:35 pm »
We can't read your mind. All I can say I have tested it and it simply works.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9908
  • Debugger - SynEdit - and more
    • wiki
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #16 on: March 07, 2023, 12:36:26 pm »
You can try and use our official installer.
Which will also give you a much newer version than 2.0.10.
And such a newer version may (as in maybe) also fix other issues....
Where can I find?

Ouch my fault.. Now that I was checking if you had 32 or 64 bit, I see you have arm. (and official installers are all Intel)
Sorry about the mistake.

You already got FPC installed (and while 3.2.0 is not the latest, keep it for now - it is not the issue).
For arm, there is only the build from source installer. (link to download on the left side on the forum).

But in that case, I suggest first try to edit the version.inc  (if the warning is the only bother)
(Or alternatively: try to rebuild the IDE with that version.inc - not sure, but may also help)



If you do an install from source => do it in your home folder.
Do not run "make install". After you did the "make clean all" or "make clean bigide" you can run lazarus from within the folder in which you build it (in your home dir)
Specify --pcp=~/mylazconf  and it will not even interfere with the installed version. (so if the build from source doesn't work for any reason, then you still have what you already got).

tetrastes

  • Sr. Member
  • ****
  • Posts: 483
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #17 on: March 07, 2023, 01:02:03 pm »
In "/urs/lib/lazarus/2.0.10/ide/"  should be a file "version.inc"
Open it in an editor (needs sudo) and change it to only contain
Code: Text  [Select][+][-]
  1. '2.0.10'

At OP's picture I see that version of Lasarus is 2.0.10+dfsg-4+b2 (look at the title of dialog), so version.inc must contain this, as I understand it.

Mi-Ki

  • Jr. Member
  • **
  • Posts: 74
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #18 on: March 07, 2023, 01:54:09 pm »
version.inc  is  2.0.10+dfsg-4

tetrastes

  • Sr. Member
  • ****
  • Posts: 483
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #19 on: March 07, 2023, 01:58:08 pm »
version.inc  is  2.0.10+dfsg-4
This is seen from your picture. Add +b2 and try.

Mi-Ki

  • Jr. Member
  • **
  • Posts: 74
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #20 on: March 07, 2023, 02:30:58 pm »
version.inc  is  2.0.10+dfsg-4
This is seen from your picture. Add +b2 and try.
It already works.  :D
Thank you very much.

dbannon

  • Hero Member
  • *****
  • Posts: 2802
    • tomboy-ng, a rewrite of the classic Tomboy
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Mi-Ki

  • Jr. Member
  • **
  • Posts: 74
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #22 on: March 08, 2023, 06:25:56 am »
But it doesn't solve the synapse.
I installed via online pakage manager.
I installed manually - Open Pakage File.
When I want to use in the project, he writes he can't find.
I have to copy to the project directory.

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #23 on: March 08, 2023, 07:28:29 am »
Did you see the synapse package in the project inspector under required packages ? If not you have add it to the project.
« Last Edit: March 08, 2023, 07:30:52 am by af0815 »
regards
Andreas

Mi-Ki

  • Jr. Member
  • **
  • Posts: 74
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #24 on: December 29, 2023, 09:45:39 am »
version.inc  is  2.0.10+dfsg-4
This is seen from your picture. Add +b2 and try.

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.







tetrastes

  • Sr. Member
  • ****
  • Posts: 483
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #25 on: December 29, 2023, 10:35:22 am »
What happens if you click "Restore Fppkg configuration"?

dbannon

  • Hero Member
  • *****
  • Posts: 2802
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #26 on: December 30, 2023, 12:09:22 am »
version.inc  is  2.0.10+dfsg-4
This is seen from your picture. Add +b2 and try.

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

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Mi-Ki

  • Jr. Member
  • **
  • Posts: 74
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #27 on: December 30, 2023, 10:02:07 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

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

  • Hero Member
  • *****
  • Posts: 1122
  • Professional amateur ;-P
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #28 on: December 30, 2023, 10:24:24 am »
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
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

dbannon

  • Hero Member
  • *****
  • Posts: 2802
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #29 on: December 31, 2023, 12:51:13 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

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

 
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018