[fpc-pascal] FPC 3.0 and FPC 2.6 on Ubuntu. How to change default version?

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Aug 4 22:38:56 CEST 2016


On 04/08/16 21:53, Krzysztof wrote:
>
> Need to have both FPC versions, 2.6 for all old projects (a lot) and
> 3.0 for new ones (only one for now). Installed 3.0 from debs (2.6 is
> also from deb packages). While installing got info that there is
> another FPC version and /etc/fpc.cfg need to be changed for switching
> between default versions. Allowed that. Now 3.0 becomes default and I
> would like to have 2.6 as default since more projects use it. Looking
> at fpc.cfg and can't find what need to be changed for make 2.6 as
> default. For example, have lazarus fixes_1_6 svn repo and 'make'
> command should always use FPC 2.6

The default FPC version is not changed via /etc/fpc.cfg. It's handled 
via symlinks in /usr/bin. You can use the old compiler by directly 
calling it via /usr/lib/fpc/2.6.0/ppc386 (or ppcx64 for the x86-64 version).

The configuration file should be compatible with both FPC 2.6.x and 
3.0.0, as long as they are installed in the same prefix (e.g. /usr or 
/usr/local).


Jonas



More information about the fpc-pascal mailing list