Recent

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

Mi-Ki

  • Jr. Member
  • **
  • Posts: 76
Install Lazarus raspberry - raspios-bullseye-arm64
« on: March 04, 2023, 05:43:06 pm »
Hello.
I installed a new 64 bit system.
2023-02-21-raspios-bullseye-arm64
Can you please help me install the latest lazarus + FPC?

CONF_SWAPSIZE=1024
sudo apt-get install fpc - to fpc 3.2.0
sudo apt-get install lazarus  - to lazarus 2.0.10
Not working well.
https://i.postimg.cc/2SsB6PXb/lazarus-raspi.png
Cannot install components
Thank you.

TRon

  • Hero Member
  • *****
  • Posts: 4353
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #1 on: March 04, 2023, 05:53:53 pm »
I have never seen that error before so I would have no idea how to fix it.

Some advise:
1 Don't try to run Lazarus on a system that is not suppose and/or is capable to run such software.
2 If you must then use 2Gb swap space if your hardware does not have that amount of memory to spare.
3 Do not use the official repositories of your distribution to install Free Pascal/Lazarus (the amount of headaches it raises on the long run simply takes to much time and is not worth it) so please uninstall.
4 Create a standalone compiler from the git source repositories of Free Pascal / Lazarus, or
5 Use FPCDeluxe if you are not able to build Free Pascal / Lazarus from source.

Additional note:consider cross-compiling (although I realize that is more work or perhaps too difficult to setup properly).
« Last Edit: March 04, 2023, 06:04:08 pm by TRon »
Today is tomorrow's yesterday.

Thaddy

  • Hero Member
  • *****
  • Posts: 16937
  • Ceterum censeo Trump esse delendam
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #2 on: March 04, 2023, 06:13:22 pm »
What Raspberry Pi are you using?
I have also never encountered it and can give better advice if I know the model. (I have most of them)
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Mi-Ki

  • Jr. Member
  • **
  • Posts: 76
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #3 on: March 04, 2023, 06:32:24 pm »
Raspberry Pi 4B 4GB
I have a long time and I had installed Raspbian Bullseye 32 bit + Lazarus.
https://forum.lazarus.freepascal.org/index.php?topic=53127.msg394884#msg394884

TRon

  • Hero Member
  • *****
  • Posts: 4353
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #4 on: March 04, 2023, 06:34:37 pm »
The error seems to originate from InitialSetupProc.pas/CheckLazarusDirectoryQuality()

@Mi-Ki:
Do you have multiple installations and/or previously installed (or tried to install) Free Pascal and Lazarus ?

At first glance it seems that Lazarus is checking the directory if it contains files that resembles a valid Lazarus installation and detects that there is/might be something wrong in that directory and warns you about it (so Lazarus might be looking at the wrong directory for required files).
Today is tomorrow's yesterday.

af0815

  • Hero Member
  • *****
  • Posts: 1384
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #5 on: March 04, 2023, 07:49:51 pm »
I am never installing from distributions. I am using always fpcupdeluxe. But i have no knowledge wit Raspbian 64.
regards
Andreas

Thaddy

  • Hero Member
  • *****
  • Posts: 16937
  • Ceterum censeo Trump esse delendam
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #6 on: March 04, 2023, 08:18:34 pm »
If you have the RPi4 - 4GB version, you do not need the swap.
There may be an issue with the AARCH architecture but I am not aware of that.
Maybe you should install multi-arch ?
I have installed that just to be able to run 32 and 64 bit.
Also note that the AARCH64 version of the Raspberry Pi OS is still slower for GUI apps. (But much faster on server apps)
« Last Edit: March 04, 2023, 08:20:28 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

dbannon

  • Hero Member
  • *****
  • Posts: 3344
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #7 on: March 04, 2023, 10:37:30 pm »
I think the problem the OP has relates to a packaging issue that existed with Lazarus at release time of Bulleseye. It was due to the name the (Debian) packagers gave it differing from the name Lazarus had in its version file. Showed up after the first time Lazarus rebuilt itself.

It was fixed almost immediately in Bullseye, maybe Raspi are still shipping the original ?

I suggest you try installing something more recent.

Maybe, just installing FPC (from the repo) and building Lazarus from source would fix things too. The original problem was in Lazarus, not FPC. I think that FPC 3.2.0 will build the current Lazarus. Carefully remove the Repo Lazarus first !

https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Build_Lazarus_from_Source

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: 76
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #8 on: March 05, 2023, 11:57:03 am »
I have installed again and works. ::)
Thank you.

TRon

  • Hero Member
  • *****
  • Posts: 4353
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #9 on: March 05, 2023, 06:56:24 pm »
Thank you for the additional information dbannon (as I was not aware of this particular issue).

Maybe, just installing FPC (from the repo) and building Lazarus from source would fix things too. The original problem was in Lazarus, not FPC. I think that FPC 3.2.0 will build the current Lazarus. Carefully remove the Repo Lazarus first !
I would have to conclude that it would fix the issue because I have never came across this issue on any of my Pi's as I build FPC/Lazarus from source.
Today is tomorrow's yesterday.

Thaddy

  • Hero Member
  • *****
  • Posts: 16937
  • Ceterum censeo Trump esse delendam
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #10 on: March 05, 2023, 08:22:41 pm »
I told you so...
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Mi-Ki

  • Jr. Member
  • **
  • Posts: 76
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #11 on: March 07, 2023, 10:45:42 am »
Hello.
I'm already unhappy.

I have a completely new, pure raspios-bullseye-arct64
2023-02-21-raspios-bullseye-arm64.img
I have Raspberry Pi 4B 4 GB.

sudo apt dist-upgrade
sudo apt-get upgrade
sudo apt-get update
CONF_SWAPSIZE=1024 MB
sudo reboot
sudo apt-get install fpc && sudo apt-get install lazarus
startlazarus-2.0.10
https://postimg.cc/xXzx0Gkk
I tried 4x and the same error.
How to assemble Lazarus with resources?
« Last Edit: March 07, 2023, 11:04:06 am by Mi-Ki »

Thaddy

  • Hero Member
  • *****
  • Posts: 16937
  • Ceterum censeo Trump esse delendam
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #12 on: March 07, 2023, 11:12:29 am »
Quote
I have Raspberry Pi 4B 4 GB.
You do not need a swap space at all. Maybe even causes problems.
Are you sure the installation works correct? 100%?

I can not reproduce your problem.

Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 11139
  • Debugger - SynEdit - and more
    • wiki
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #13 on: March 07, 2023, 11:32:19 am »
Is the warning in the image ("wrong version ...") the only issue?
If you just click "Start IDE" and ignore any warning that comes after that, does the IDE start and work?

I do understand, ignoring this warning on each start is a major annoyance... But just to make sure if that is the issue or something else in addition.




It seems to me, this may be an issue with the version from the linux distro ("sudo apt"...) => the packages that "apt" installs are build and provided by the maintainers of your Linux distro.
We (The FPC/Lazarus team) have no influence on them. We can not control how other people distribute our software.

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




But in this case maybe there is a workaround.

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'

The installer you used appears to have appended "+dfg..." and that may be what upsets the IDE.




Important

If you get a similar error after an upgrade, then first check if the version in the path is correct.

Example:
- If you upgraded to 2.2.4
- But the path contains 2.0.10
- then do not edit the file
- but instead: correct the path

And very likely after such an update, you need to rebuild your ide (See menu: "Tools").
Until you have
- first fixed the path
- then rebuild  the IDE
you may see various warnings.

Mi-Ki

  • Jr. Member
  • **
  • Posts: 76
Re: Install Lazarus raspberry - raspios-bullseye-arm64
« Reply #14 on: March 07, 2023, 12:15:50 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?
How did he install?
Thank you.

 

TinyPortal © 2005-2018