<div dir="ltr"><div class="gmail_extra">I am not sure if this will help, but I place this script as "setup" in any fpc directory:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><font face="monospace, monospace">#!/bin/bash</font></div><div class="gmail_extra"><font face="monospace, monospace"><br></font></div><div class="gmail_extra"><font face="monospace, monospace">if [ -z ${OLDPATH+x} ]; then</font></div><div class="gmail_extra"><font face="monospace, monospace">  OLDPATH=$PATH</font></div><div class="gmail_extra"><font face="monospace, monospace">else</font></div><div class="gmail_extra"><font face="monospace, monospace">  PATH=$OLDPATH</font></div><div class="gmail_extra"><font face="monospace, monospace">fi</font></div><div class="gmail_extra"><font face="monospace, monospace"><br></font></div><div class="gmail_extra"><font face="monospace, monospace">BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"</font></div><div class="gmail_extra"><font face="monospace, monospace">export PPC_CONFIG_PATH=$BASE/bin</font></div><div class="gmail_extra"><font face="monospace, monospace">rm $PPC_CONFIG_PATH/fpc.cfg > /dev/null 2>&1</font></div><div class="gmail_extra"><font face="monospace, monospace">$PPC_CONFIG_PATH/fpcmkcfg -d basepath=$BASE/lib/fpc/\$FPCVERSION -o $PPC_CONFIG_PATH/fpc.cfg</font></div><div class="gmail_extra"><font face="monospace, monospace">export PATH=$PPC_CONFIG_PATH:$OLDPATH</font></div><div class="gmail_extra"><br></div><div class="gmail_extra">Then when I want to change compilers, I go to the fpc folder with the version I want to use and execute:</div><div class="gmail_extra"><br></div><div class="gmail_extra">. ./setup</div><div class="gmail_extra"><br></div><div class="gmail_extra">This sources the script setup, and changes the fpc version. Example:</div><div class="gmail_extra"><br></div><div class="gmail_extra">user@debian: fpc</div><div class="gmail_extra"><b>bash: fpc: command not found</b></div><div class="gmail_extra"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">user@debian:</span> cd $HOME/Development/FreePascal/fpc-trunk</div><div class="gmail_extra"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">user@debian:</span> . ./setup</div><div class="gmail_extra"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">user@debian:</span> fpc -iV</div><div class="gmail_extra"><b>3.1.1</b><br></div><div class="gmail_extra"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">user@debian:</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>cd $HOME/Development/FreePascal/fpc-3.0.0</span></div><div class="gmail_extra"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div class="gmail_extra" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">user@debian:</span><span> </span>. ./setup</div>user@debian:</span> fpc -iV<br></div><div class="gmail_extra"><div class="gmail_extra" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><b>3.0.0</b><br></div><div class="gmail_extra"><br></div>What this script does is save the old path, put the bin folder of fpc in the path, set the <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">PPC_CONFIG_PATH variable, and</span> generate a new bin/fpc.cfg. You can then have as many fpc compiler versions as will fit on disk, and change compilers easily.<br class="gmail-Apple-interchange-newline"><br></div><div class="gmail_extra">So in summary, copy my script above to each fpc folder, name it setup, chmod +x setup, and . ./setup to change to a specific compiler.</div></div></div>