Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2023-11

How to generate the fppkg.cnf file which Lazarus complains about when starting?

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bo Berglund

I have installed Lazarus on a Raspberry Pi4B running bookworm 64 bit operating system.
I first tried to use fpcupdeluxe to do it but it fails miesrably with a linker error when building fpc.
So then I decided to try the following:
1) Use apt install fpc to getb the latest 3.2.2 compiler installed.
2) Retrieve the Lazarus 2.2.6 sources from GitLab
3) Then run the make clean && make bigide inside the Lazarus source dir
4) Finally create the $HOME/.local/share/applications/lazarus_2.2.6.desktop launcher file

This succeeded and after I had created the desktop file for Lazarus in step 4 it appeared in the RPi4 main menu under Programming.

But when I started it it complains about not finding fppkg.cfg and sure enough there is no such file to be found, at least not in the locations I have seen before.

So apparently it has not been created or is in some obscure loication not known by me.

My Lazarus resides in $HOME/devtools/lazarus/2.2.6 and fpc has been placed in /usr/bin/fpc.

But I cannot find a file named fppkgh.cfg whereever I look...

What to do now?

Lazarus runs and I can add IDE packages and rebuild Lazarus just fine but whenever it starts up it shows the dialog requesting the location of fppkg.cfg...

Bo Berglund Developer in Sweden

Reply by email

Aurimenes Silva
to Bo Berglund

I wonder, isn't this somehow related to writing permissions on your system?

I can't help much because I use Windows here, but that's the content of my fppkg.cfg file (located in fpcsrc\utils\fpcmkcfg):

[Defaults]
ConfigVersion=4
LocalRepository=%LocalRepository%
BuildDir={LocalRepository}build/
ArchivesDir={LocalRepository}archives/
CompilerConfigDir=%CompilerConfigDir%
RemoteMirrors=https://www.freepascal.org/repository/mirrors.xml RemoteRepository=auto
CompilerConfig=default
FPMakeCompilerConfig=default
Downloader=FPC

I installed it using the standard Windows installer.

Bo Berglund wrote 33 lines
I have installed Lazarus on a Raspberry Pi4B running bookworm 64 bit operating system. I first tried to use fpcupdeluxe to do it but it fails miesrably with a linker error when building fpc. So then I decided to try the following: 1) Use apt install fpc to getb the latest 3.2.2 compiler installed. 2) Retrieve the Lazarus 2.2.6 sources from GitLab 3) Then run the make clean && make bigide inside the Lazarus source dir 4) Finally create the $HOME/.local/share/applications/lazarus_2.2.6.desktop launcher file This succeeded and after I had created the desktop file for Lazarus in step 4 it appeared in the RPi4 main menu under Programming. But when I started it it complains about not finding fppkg.cfg and sure enough there is no such file to be found, at least not in the locations I have seen before. So apparently it has not been created or is in some obscure loication not known by me. My Lazarus resides in $HOME/devtools/lazarus/2.2.6 and fpc has been placed in /usr/bin/fpc. But I cannot find a file named fppkgh.cfg whereever I look... What to do now? Lazarus runs and I can add IDE packages and rebuild Lazarus just fine but whenever it starts up it shows the dialog requesting the location of fppkg.cfg...
O software antiv?rus Avast realizou uma checagem de v?rus neste e-mail. www.avast.com

Reply by email

John Landmesser
to Bo Berglund: I have installed Lazarus on a Raspberry Pi4B running bookworm 64 bit operating system. I…
Bo Berglund wrote 33 lines
I have installed Lazarus on a Raspberry Pi4B running bookworm 64 bit operating system. I first tried to use fpcupdeluxe to do it but it fails miesrably with a linker error when building fpc. So then I decided to try the following: 1) Use apt install fpc to getb the latest 3.2.2 compiler installed. 2) Retrieve the Lazarus 2.2.6 sources from GitLab 3) Then run the make clean && make bigide inside the Lazarus source dir 4) Finally create the $HOME/.local/share/applications/lazarus_2.2.6.desktop launcher file This succeeded and after I had created the desktop file for Lazarus in step 4 it appeared in the RPi4 main menu under Programming. But when I started it it complains about not finding fppkg.cfg and sure enough there is no such file to be found, at least not in the locations I have seen before. So apparently it has not been created or is in some obscure loication not known by me. My Lazarus resides in $HOME/devtools/lazarus/2.2.6 and fpc has been placed in /usr/bin/fpc. But I cannot find a file named fppkgh.cfg whereever I look... What to do now? Lazarus runs and I can add IDE packages and rebuild Lazarus just fine but whenever it starts up it shows the dialog requesting the location of fppkg.cfg...

On my Manjaro linux the file in question are located in two places:

[john1 at manjaro lazarus]$ locate -i? fppkg.cfg
*/etc/fppkg.cfg*

*... with this contrent*

**

Show quoted text 29 lines
*[Defaults] ConfigVersion=5 LocalRepository={UserDir}.fppkg/ BuildDir={LocalRepository}build/ ArchivesDir={LocalRepository}archives/ CompilerConfigDir=/etc/fppkg RemoteMirrors=https://www.freepascal.org/repository/mirrors.xml RemoteRepository=auto CompilerConfig=default FPMakeCompilerConfig=default Downloader=FPC InstallRepository=user [Repository] Name=fpc Description=Packages which are installed along with the Free Pascal Compiler Path=/usr/lib/fpc/{CompilerVersion}/ Prefix=/usr/lib/fpc/../../ [IncludeFiles] FileMask=/etc/fppkgconf.d/*.conf [Repository] Name=user Description=User-installed packages Path={LocalRepository}lib/fpc/{CompilerVersion} Prefix={LocalRepository} *

*
*

*/usr/lib/fpc/src/utils/fpcmkcfg/fppkg.cfg*

Perhaps this command tells you more?

[john1 at manjaro lazarus]$*./lazarus --setup*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20231116/06a8ec19/attachment.htm>

Reply by email

Bo Berglund
to John Landmesser
John Landmesser wrote 78 lines
Am 16.11.23 um 13:30 schrieb Bo Berglund via lazarus: > I have installed Lazarus on a Raspberry Pi4B running bookworm 64 bit operating > system. > I first tried to use fpcupdeluxe to do it but it fails miesrably with a linker > error when building fpc. > So then I decided to try the following: > 1) Use apt install fpc to getb the latest 3.2.2 compiler installed. > 2) Retrieve the Lazarus 2.2.6 sources from GitLab > 3) Then run the make clean && make bigide inside the Lazarus source dir > 4) Finally create the $HOME/.local/share/applications/lazarus_2.2.6.desktop > launcher file > > This succeeded and after I had created the desktop file for Lazarus in step 4 it > appeared in the RPi4 main menu under Programming. > > But when I started it it complains about not finding fppkg.cfg and sure enough > there is no such file to be found, at least not in the locations I have seen > before. > > So apparently it has not been created or is in some obscure loication not known > by me. > > My Lazarus resides in $HOME/devtools/lazarus/2.2.6 and fpc has been placed in > /usr/bin/fpc. > > But I cannot find a file named fppkgh.cfg whereever I look... > > What to do now? > > Lazarus runs and I can add IDE packages and rebuild Lazarus just fine but > whenever it starts up it shows the dialog requesting the location of > fppkg.cfg... > > On my Manjaro linux the file in question are located in two places: [john1 at manjaro lazarus]$ locate -i? fppkg.cfg */etc/fppkg.cfg* *... with this contrent* ** > *[Defaults] > ConfigVersion=5 > LocalRepository={UserDir}.fppkg/ > BuildDir={LocalRepository}build/ > ArchivesDir={LocalRepository}archives/ > CompilerConfigDir=/etc/fppkg > RemoteMirrors=https://www.freepascal.org/repository/mirrors.xml > RemoteRepository=auto > CompilerConfig=default > FPMakeCompilerConfig=default > Downloader=FPC > InstallRepository=user > > [Repository] > Name=fpc > Description=Packages which are installed along with the Free Pascal > Compiler > Path=/usr/lib/fpc/{CompilerVersion}/ > Prefix=/usr/lib/fpc/../../ > > [IncludeFiles] > FileMask=/etc/fppkgconf.d/*.conf > > [Repository] > Name=user > Description=User-installed packages > Path={LocalRepository}lib/fpc/{CompilerVersion} > Prefix={LocalRepository} > * * * */usr/lib/fpc/src/utils/fpcmkcfg/fppkg.cfg*

None of these locations exist on my device.
However, Lazarus works (built from sources) as does fpc (installed via apt)

The only problem ius that I get this annoying pop-up every time I start Lazarus...

Perhaps this command tells you more? [john1 at manjaro lazarus]$*./lazarus --setup*

What is that supposed to do? I don't want to run an unknown command after spending so much time finally getting Lazarus working...

NOTE: ffpkg seems not to be a recognized command...

And the file I found here is also not accepted:
https://forum.lazarus.freepascal.org/index.php/topic,60994.msg457678.html#msg457678

Bo Berglund Developer in Sweden

Reply by email

Werner Pamler
to Bo Berglund: I have installed Lazarus on a Raspberry Pi4B running bookworm 64 bit operating system. I…
Bo Berglund wrote
2) Retrieve the Lazarus 2.2.6 sources from GitLab

IIRC, the fppkg check has been by-passed by Laz 3.0. So, please try to install the RC2 of v3, or a wait a short time until the final version will be released.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20231116/b41be1c9/attachment.htm>

Reply by email

Bo Berglund
to Werner Pamler
Werner Pamler wrote 5 lines
Am 16.11.2023 um 13:30 schrieb Bo Berglund via lazarus: > 2) Retrieve the Lazarus 2.2.6 sources from GitLab IIRC, the fppkg check has been by-passed by Laz 3.0. So, please try to install the RC2 of v3, or a wait a short time until the final version will be released.

OK, will wait then.

Bo Berglund Developer in Sweden

Reply by email

Bo Berglund
to Bo Berglund
Bo Berglund wrote 11 lines
On Thu, 16 Nov 2023 16:49:25 +0100, Werner Pamler via lazarus wrote: >Am 16.11.2023 um 13:30 schrieb Bo Berglund via lazarus: >> 2) Retrieve the Lazarus 2.2.6 sources from GitLab >IIRC, the fppkg check has been by-passed by Laz 3.0. So, please try to >install the RC2 of v3, or a wait a short time until the final version >will be released. OK, will wait then.

Or rather, I downloaded the 3.0.RC2 sources and built another Lazarus on the RPi4. This was different, no longer the ask for the fppkg.cnf file!

So I guess I can let that issue rest for now.

Bo Berglund Developer in Sweden

Reply by email