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

John Landmesser jmlandmesser at gmx.de
Thu Nov 16 14:27:27 CET 2023


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*


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>


More information about the lazarus mailing list