[Lazarus] Exception=Unable to create file "/etc/fppkg/default"

Joost van der Sluis joost at cnoc.nl
Sun Dec 30 19:25:50 CET 2018

Op 30-12-18 om 18:17 schreef Vojtěch Čihák via lazarus:
> What config file?
> My /etc/fppkg.cfg is:
> [Defaults]
> ConfigVersion=4
> 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

This is really strange, I would like to know how you've got into this 

There are two configuration-files for fppkg, the 'normal' 
configuration-file fppkg.cfg and the compiler-configuration file, 
normally called 'default'. The fppkf.cfg file has a reference to the 
location of the compiler-configuration files.

In your case you do have a fppkg.cfg file in /etc, but you do not have 
the corresponding compiler-configuration file /etc/fppkg/default. It 
must have been deleted or never been made?

Just remove /etc/fppkg.cfg. In that case a new file will be created 
automatically in your user-profile.

It is this automatic creation of those files that bites you. Normally it 
only creates files in /etc when you are root. But because there is a 
/etc/fppkg.cfg file, you get into trouble. I'll try to fix that.



More information about the Lazarus mailing list