I have a functional installation of fpc 2.6.4 on Linux Mint. FPC is installed in a path under my user folder.
Now I want to install fpc 3.0.0rc2, but to leave 2.6.4. Before installation of fpc 3.0, I want to move my fpc.cfg which was created by 2.6.4 installation from user folder to some other folder.
I looked in docementation
(see here), and it says:
the compiler will look for a configuration file fpc.cfg in the following places:
Under unix (such as linux)
1. The current directory.
2. Your home directory, it looks for .fpc.cfg.
3. The directory specified in the environment variable PPC_CONFIG_PATH, and if it is not set, it will look in the etc directory above the compiler directory. (For instance, if the compiler is in /usr/local/bin, it will look in /usr/local/etc)
4. The directory /etc.
Let's say that my fpc 2.6.4 binary folder is is ~/my_fpc_installation_dir/bin. Now I have .fpc.cfg in my user folder ~/.
So, I tried to move .fpc.cfg from ~/ to ~/my_fpc_installation_dir/etc.
The environment variable PPC_CONFIG_PATH is not set, so I expected fpc to find it there. But it cannot find it. Where am I wrong?
Please help. I would like to move it, so I could install fpc 3.0 rc2 in some other path under my user directory and put another fpc.cfg there in etc.