<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 16.11.23 um 13:30 schrieb Bo
Berglund via lazarus:<br>
</div>
<blockquote type="cite"
cite="mid:d12clitekq593leodjema9fqv8lg4olbmj@4ax.com">
<pre class="moz-quote-pre" wrap="">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...
</pre>
</blockquote>
<p><br>
</p>
<p><br>
</p>
<p>On my Manjaro linux the file in question are located in two
places:</p>
<p>[john1@manjaro lazarus]$ locate -i fppkg.cfg<br>
<b>/etc/fppkg.cfg</b></p>
<p><b>... with this contrent</b></p>
<p><b>
<blockquote type="cite">[Defaults]<br>
ConfigVersion=5<br>
LocalRepository={UserDir}.fppkg/<br>
BuildDir={LocalRepository}build/<br>
ArchivesDir={LocalRepository}archives/<br>
CompilerConfigDir=/etc/fppkg<br>
RemoteMirrors=<a class="moz-txt-link-freetext" href="https://www.freepascal.org/repository/mirrors.xml">https://www.freepascal.org/repository/mirrors.xml</a><br>
RemoteRepository=auto<br>
CompilerConfig=default<br>
FPMakeCompilerConfig=default<br>
Downloader=FPC<br>
InstallRepository=user<br>
<br>
[Repository]<br>
Name=fpc<br>
Description=Packages which are installed along with the Free
Pascal Compiler<br>
Path=/usr/lib/fpc/{CompilerVersion}/<br>
Prefix=/usr/lib/fpc/../../<br>
<br>
[IncludeFiles]<br>
FileMask=/etc/fppkgconf.d/*.conf<br>
<br>
[Repository]<br>
Name=user<br>
Description=User-installed packages<br>
Path={LocalRepository}lib/fpc/{CompilerVersion}<br>
Prefix={LocalRepository}<br>
</blockquote>
<br>
</b></p>
<p><b>/usr/lib/fpc/src/utils/fpcmkcfg/fppkg.cfg</b></p>
<p><br>
</p>
<p>Perhaps this command tells you more?</p>
<p>[john1@manjaro lazarus]$<b> ./lazarus --setup</b><br>
<br>
</p>
</body>
</html>