Forum > Linux

Cant install Indy on Lazarus Raspberry Pi

<< < (2/2)

dbannon:
My prefered approach is always to build Lazarus from source. You are going to rebuild it as soon as you install your first package so why not get it over and done with, right at the start, so you know absolutely you have a viable build. And you 'own' the process.

One of the problems of using Debian Repository packages is that Debian chooses to break Lazarus down into smaller parts, to allow you to install only the parts you need. But in practice, you need all the parts so it really does not help. My guess is you did not get everything you need to rebuild - and you always need to rebuild !

The Wiki page, https://wiki.freepascal.org/Installing_Lazarus_on_Linux has the details, only special thing about RasPi, you might need to increase swap space, depending on how much ram you have.

I suggest you use apt to remove your existing lazarus install, then use apt to install the handful of dependencies, download a zip file of Lazarus _2_2_0_rc2 and build that. You get a much newer Lazarus, its all in user space and you can see it build.

Davo

Johan van der Merwe:
Hi Andreas

Thanks for all the replies. I will go ahead and try and follow your outlined steps.

I did find something in the code that might also explain why I am running into trouble. I decided to try and also rebuild each package that is required by Indy (as far as I could tell) from the package manager interface in Lazarus. The one package, "fppkgpackagemanager.lpk" gives me an error when I try to compile it. Basically I get an error stating:

--- Quote ---fppkg_optionsfrm.pas(287,43) Error: Identifier not found "llProgress"
--- End quote ---
.
I have checked and it seem that
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---llProgress is defined elsewhere as
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---llProgres, with just one s at the end.
I have included two screen shots to show the issue. I think that if this error was fixed, I might be able to resolve my installation issue, perhaps fpdebug is dependent on fppkgpackagemanager, which gives an error.

Hope it helps someone.

I will go ahead and try and install everything manually.

Regards

Johan van der Merwe:
Hi

Just an update. I did use fpcupdeluxe and installed everything successfully from scratch. FYI for any newbs like me out there, basically fpcupdeluxe is a script/app that you use to install and manage the PFC and Lazarus installation and packages (so you do not use the package manager within Lazarus).
If you google it, there are a few nice Youtube video clips that helped me a lot.
The video clip I used was:
https://www.youtube.com/watch?v=QOzaALQyI9E
but I am sure there are other good ones too. The advice in the posts below also helped.

Thanks for everyone's help. Much appreciated.

af0815:
It is better for packages, to use OPM (Online Package Manager) inside of Lazarus. The packages there are normally more stable. The packages in OPM are normal mainainend and bugfixed.

For fpc/Lazarus use fpcupdeluxe, for the packages use OPM. This is a winning couple.

THX to DonAlfredo and GetMem for their work.

Navigation

[0] Message Index

[*] Previous page

Go to full version