Install Lazarus raspberry - raspios-bullseye-arm64 lazarus / 1-Linux ---------------------------------------------------------------------- Mi-Ki · 2023-03-04 16:43 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 · 2023-03-04 16:53 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). ---------------------------------------------------------------------- Thaddy · 2023-03-04 17:13 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) ---------------------------------------------------------------------- Mi-Ki · 2023-03-04 17:32 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#m sg394884 ---------------------------------------------------------------------- TRon · 2023-03-04 17:34 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). ---------------------------------------------------------------------- af0815 · 2023-03-04 18:49 I am never installing from distributions. I am using always fpcupdeluxe. But i have no knowledge wit Raspbian 64. ---------------------------------------------------------------------- Thaddy · 2023-03-04 19:18 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) ---------------------------------------------------------------------- dbannon · 2023-03-04 21:37 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 ---------------------------------------------------------------------- Mi-Ki · 2023-03-05 10:57 I have installed again and works. Thank you. ---------------------------------------------------------------------- TRon · 2023-03-05 17:56 Thank you for the additional information dbannon (as I was not aware of this particular issue). Quote from: dbannon on March 04, 2023, 10:37:30 pmMaybe, 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. ---------------------------------------------------------------------- Thaddy · 2023-03-05 19:22 I told you so... ---------------------------------------------------------------------- Mi-Ki · 2023-03-07 09:45 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? ---------------------------------------------------------------------- Thaddy · 2023-03-07 10:12 QuoteI 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. ---------------------------------------------------------------------- Martin_fr · 2023-03-07 10:32 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][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i '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 · 2023-03-07 11:15 Quote from: Martin_fr on March 07, 2023, 11:32:19 amYou 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. ---------------------------------------------------------------------- Thaddy · 2023-03-07 11:23 We can't read your mind. All I can say I have tested it and it simply works. ---------------------------------------------------------------------- Martin_fr · 2023-03-07 11:36 Quote from: Mi-Ki on March 07, 2023, 12:15:50 pmQuote from: Martin_fr on March 07, 2023, 11:32:19 amYou 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 · 2023-03-07 12:02 Quote from: Martin_fr on March 07, 2023, 11:32:19 amIn "/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][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i '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 · 2023-03-07 12:54 version.inc  is  2.0.10+dfsg-4 ---------------------------------------------------------------------- tetrastes · 2023-03-07 12:58 Quote from: Mi-Ki on March 07, 2023, 01:54:09 pmversion.inc  is  2.0.10+dfsg-4 This is seen from your picture. Add +b2 and try. ---------------------------------------------------------------------- Mi-Ki · 2023-03-07 13:30 Quote from: tetrastes on March 07, 2023, 01:58:08 pmQuote from: Mi-Ki on March 07, 2023, 01:54:09 pmversion.inc  is  2.0.10+dfsg-4 This is seen from your picture. Add +b2 and try. It already works.  Thank you very much. ---------------------------------------------------------------------- dbannon · 2023-03-07 22:27 https://forum.lazarus.freepascal.org/index.php/topic,56937.msg423231.h tml ---------------------------------------------------------------------- Mi-Ki · 2023-03-08 05:25 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 · 2023-03-08 06:28 Did you see the synapse package in the project inspector under required packages ? If not you have add it to the project. ---------------------------------------------------------------------- Mi-Ki · 2023-12-29 08:45 Quote from: tetrastes on March 07, 2023, 01:58:08 pmQuote from: Mi-Ki on March 07, 2023, 01:54:09 pmversion.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 · 2023-12-29 09:35 What happens if you click "Restore Fppkg configuration"? ---------------------------------------------------------------------- dbannon · 2023-12-29 23:09 Quote from: Mi-Ki on December 29, 2023, 09:45:39 amQuote from: tetrastes on March 07, 2023, 01:58:08 pmQuote from: Mi-Ki on March 07, 2023, 01:54:09 pmversion.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 ---------------------------------------------------------------------- Mi-Ki · 2023-12-30 09:02 Quote from: dbannon on December 30, 2023, 12:09:22 amBuild 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.  Thank you. ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2023-12-30 09:24 Hey Mi-Ki, For future reference. There are, at least, 4 ways one can install a FPC/Lazarus set: From the distro's own repositoriesFrom the install binaries provided by Source ForgeFrom source - manuallyFrom 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 In hopes this helps you and anyone in the future! Cheers, Gus ---------------------------------------------------------------------- dbannon · 2023-12-30 23:51 Quote from: Gustavo 'Gus' Carreno on December 30, 2023, 10:24:24 amThere are, at least, 4 ways one can install a FPC/Lazarus set: From the distro's own repositoriesFrom the install binaries provided by Source ForgeFrom source - manuallyFrom 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