[Lazarus] Fppkg reports RTL not installed - Lazarus 2.2.4/fpc 3.2.2 from sources on Ubuntu
Bo Berglund
bo.berglund at gmail.com
Tue Feb 21 11:12:54 CET 2023
On Thu, 9 Feb 2023 22:37:20 +0100, Martin Frb via lazarus
<lazarus at lists.lazarus-ide.org> wrote:
>On 09/02/2023 21:57, Bo Berglund via lazarus wrote:
>> And it seems to be looking for $HOME/.config/fppkg.cfg even though I
>> am using
>> separate install dirs for Lazarus 2.0.12 and 2.2.4 and the launch file
>> lazarus_2.2.4.desktop contains --pcp=/home/bosse/.lazarus_2.2.4
>>
>> So I would expect the location of the fppkg.cnf file to be inside that pcp dir,
>> but it is not.
>
>According to what I gathered info wise, fppkg only supports one config
>dir. (it has some options, but not sure the IDE uses those)
>So it does not work well for Lazarus multi install.
This is just terrible!
>From now on one has to view the error dialog every time one starts Lazarus?
And nothing can be done about it?
As I said I have used many Linux and Windows systems all with multiple installs
of different versions of Lazarus and FPC and it has all worked well regarding
launching the IDE. Never anything like this happened before.
And the problem is not even on a single new install but on every install I do
both using the Wiondows installer and building from sources.
>The IDE will work fine without it.
>It' only needed if you need some of the few packages that are only avail
>via fppkg (though you can download them by hand anyway)
I have never been aware of this before and it has just worked.
I am not doing any fancy installs just first the basic installation and then use
OLPM to install all of the extra packages I need (same list every time).
Finally putting my own developed packages and utilities on each system as well.
I have never even been aware of the fppkg program or its use.
And with a new release I usually just make a parallel installation using pcp
functionality.
>>> Try to delete the old config by hand.
>>> Then -outside the IDE - use the latest (3.2.2) fppkg to create a new
>>> config. (may or may not need the fpc install in PATH)
>> Exactly what do you suggest here?
>> - Which old config? File name and location please.
>The one in your home folder (I don't have Linux path)...
>On Windows it's in %APPDATA%\Local\FreePascal\fppkg
>
>There are files like fppkg.cfg mirrors.xml packages.xml and some folders.
>
No other file found there than fppkg.cfg and if I reneme it and start fppkg.exe
manually it recreates the exact same content in a new fppkg.cfg file.
Still no effect on the actions on startup, error dislog pops up.
>> - How do I use the new fpc to recreate it? I don't even know what it is....
>there is an fppkg utility in the fpc folder. (fppkg is part of fpc)
On Linux it is found here:
/home/bosse/bin/fppkg
Notice that this is a global location for my user.
And on my Windows install here:
C:\Programs\Lazarus_2.2.4\fpc\3.2.2\bin\x86_64-win64\fppkg.exe
This is a Lazarus unique location for ver 2.2.4 and on Windows it is not on
path...
Still both installations behave the same.
>
>If you just run it
>fppkg
>it should create a config file (if none exists).
Yes it creates a new cnf file identical to the old renamed file.
But still my new Lazarus won't start cleanly, whereas 2.0.12 starts just fine on
Winddows as well as on Linux.
No popup error message anywhere to be seen...
>It is not about the lazarus version, but different fpc versions.
>In my case (but maybe I was lucky) the older fpc didn't complain....
>
I have used Lazarus since a long time, on my Windows 10 PC I have versions:
2.0.6, 2.0.8, 2.0.10, 2.0.12 and 2.2.4
All of these have their own fpc compiler installed with them in their own
directory trees and it has worked just fine up until this newest version 2.2.4
broke it.
And it does the same on both Linux and Windows!!!
So it is definitely about the Lazarus version 2.2.4!
I might try and put it on a Raspberry Pi4 just to check this...
One that I have access to has 7 different Lazarus versions with the latest being
2.0.12 and FPC versions are 3.0.4 and 3.2.0 and it uses the pcp dir
functionality to allow the multiple installs of different Lazarus versions.
I will do this when I get the time later...
--
Bo Berglund
Developer in Sweden
More information about the lazarus
mailing list