Forum > Linux

Cant install Indy on Lazarus Raspberry Pi

(1/2) > >>

Johan van der Merwe:
Good day

I am trying to install and use Indy on Lazarus on a Raspberry Pi 4. My Raspbian OS details are:

NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian

The Lazarus installation details are:
Lazarus 2.0.0+dfsg-2 rDebian package 2.0.0+dfsg-2 FPC 3.0.4 arm-linux-gtk2

I have installed the FPC and Lazarus using the following command:
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install fpc && sudo apt-get install lazarus

This worked well and Lazarus did install. I then opened Lazarus and opened the "Online Package Manager". I opened "Indy 10 - 2021.11.02" and clicked on "Install" -> "From Repository".  The packages started downloading and extracted. It then compiles successfully. A popup box then comes up asking: "Do you want to rebuild Lazarus with profile: Normal IDE?". I then click on Yes. I then restart Lazarus, unfortunately I do not see any Indy tabs at the Controls tab.

I then clicked on "Package" -> "Open Loaded Package". Indylaz.lpk is in the list. The State is: "auto install static". If I then click on "Open" and "Compile", it compiles well. I then click on "Use" -> "Install". I then get the following message:

--- Quote ---The package "indylaz 10.6.2.4060" was marked for installation.
Currently Lazarus only supports static linked packages. The real installation needs rebuilding and restarting of Lazarus.

Do you want to rebuild Lazarus now?
--- End quote ---
I then click Yes. The IDE then starts to build. I then get the following error:

--- Quote ---lazarus.pp(1,1) Fatal: Cannot find fpdebug used by Lazarus. Check if package fpdebug creates fpdebug.ppu, check nothing deletes this file and check that no two packages have access to the unit source..
--- End quote ---

I have tried various other "tricks" to get Indy to compile and be available, but I am struggling.

Any help would be appreciated in order for me to install and use Indy.

Thanks a lot.




 


af0815:
If you remove Indy from the list of packages to install, can you make a clean rebuild of Lazarus without an Error ?

This will be the first step.

If the error is the same, not the indy package is the problem.

Johan van der Merwe:
Hi
Thanks for quick reply. I did remove Indy from the list of packages to install. I then clicked on TOOLS -> Build Lazarus with Profile: Normal IDE. I then get the following eror:

--- Quote ---lazarus.pp(1,1) Fatal: Cannot find fpdebug used by Lazarus.
--- End quote ---

ccrause:

--- Quote from: Johan van der Merwe on November 16, 2021, 08:57:37 pm ---Hi
Thanks for quick reply. I did remove Indy from the list of packages to install. I then clicked on TOOLS -> Build Lazarus with Profile: Normal IDE. I then get the following eror:

--- Quote ---lazarus.pp(1,1) Fatal: Cannot find fpdebug used by Lazarus.
--- End quote ---

--- End quote ---

Did you select "clean all" in the build Lazarus options? Fpdebug is part of the default components that ships with Lazarus, so this is an unexpected error - not that this is an excuse, it just means a bit of digging is required to get to the root of the problem.

af0815:
I have in the past problems with the original DEB packages from Debian/Raspbian. Amd here in the forum it pops often up with troubles. But from FPC/Lazarus Team there where not prebuild deb packages for the arm in the Download area (left side up in the forum under Downloads). This is the reason i use fpcupdeluxe always.

How to do it:
* ) deinstall and remove the packages from the original Debian
* ) intsall the prerequisites descibed here https://wiki.lazarus.freepascal.org/fpcupdeluxe
* ) download fpcupdeluxe from here https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases ( fpcupdeluxe-armv6hf-linux)
* ) create a directory for fpc/lazarus (without special chars, blanks,....)
* ) start fpcupdeluxe and set the targetdir and the wanted version (stable, main, RC....) for fpc and Lazarus. (I prefere fpc fixes and Lazarus fixes or the actual RC)
* ) start the installation of fpc first and after finishes start the installation of Lazarus. So you see if something goes wrong, why.
* ) you must start lazarus with the created link (or read the wiki article in deep)

There is a extra support forum here for fpcupdeluxe under third party software here in the forum.

BTW: This is MY best pratice for RasPi. There are a lot of ways to install it in a running configuration. For me this works always, without problems (except sometimes trunk)


Navigation

[0] Message Index

[#] Next page

Go to full version