[fpc-pascal] Search path order for fpc.cfg
Sven Barth
pascaldragon at googlemail.com
Sat Apr 11 15:02:46 CEST 2020
Am 11.04.2020 um 14:46 schrieb fredvs via fpc-pascal:
>> It will create one in your home directory if it detects you do not have
> root access.
>
> Could you explain that?
> Of course if you can show me a trick for configuring a script that will
> install fpc in the home directory (.fpc.cfg), with for example the
> hard-coded directory /home/user/instantfpc, I will use it.
>
> But the condition will be that the user has nothing write, only run a
> script.
By default the compiler also looks in ~/.fpc.cfg on *nix systems (and
then tries /etc/fpc.cfg). So if you have your installation script
automatically create the correct configuration file using fpcmkcfg
(distributed with FPC, see $fpcdir/utils/fpcmkcfg) setting up the
correct paths then your user will be good to go (after all this is what
FPC's installation script does as well).
Regards,
Sven
More information about the fpc-pascal
mailing list