[fpc-pascal] FPC 3.0.X next to 2.6.4 on Linux

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Sat Jan 7 09:33:24 CET 2017

On 06/01/17 20:30, Michael Van Canneyt wrote:
> On Fri, 6 Jan 2017, Krzysztof wrote:
>> Hi,
>> I have installed FPC 2.6.4 for a long time on my Linux with install.sh
>> script in /usr dirs. I would like to install FPC 3.0.0 but keep 2.6.4 as

> What I do is to have all installs in /usr/local/lib/fpc/$VERSION
> and in /usr/local/bin I have symlinks
> fpc
> ppcx64-3.0.0 -> /usr/local/lib/fpc/3.0.0/ppcx64
> ppcx64-2.6.4 -> /usr/local/lib/fpc/2.6.4/ppcx64
> and the same for versions back to the mists of time...

Agreed, and I fairly regularly run very old versions- both FPC and 
Lazarus- without clashes. The one thing I also do- although I'm not sure 
to what extent it's necessary- is install the binaries for fpc, fp, 
fpcres and so on in /usr/local/bin/fpc.d/2.6.4 and so on in an attempt 
to keep tools for e.g. documentation generation etc. from being 
overwritten... I don't know the extent to which this is necessary, but 
I've tried in the past to extract lists of things like the FPC version 
at which a specific package was added.

The above works well with fpc's -V option.

Some of the 2.7 development versions installed in /usr/local/bin rather 
than /usr/local/bin/fpc etc., both 2.6.4 and 3.0.0 are OK.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list