rushfan, I am unsure of where you are up to here. But sounds like you have successfully build FPC323 and are struggling as to how to use it instead of the default FPC322 ? Please don't go putting symlinks to the new one in /usr/bin, makes it hard to go back to the old one.
While you could use a compile command that begins with an explicit path to the one to use, the more normal approach is to update your PATH variable. As long as you are starting fpc from the command line, all that means, on Linux, is an edit of ~/.bashrc. If you have in fact installed FPC in /usr/local/bin then add these two lines to the end of ~/.bashrc
export OLDPATH="$PATH"
export PATH=/usr/local/bin:"$PATH"
And, run $> source ~/.bashrc so the shell reads it. Make sure /usr/local/bin/fpc exists too !
If you feel the need to rebuild FPC323 again, you can force you PATH back to the old setting for that session with -
$> export PATH="$OLDPATH"
I cannot tell you so clearly how to deal with the Mac, Apple have stopped using bash but I did not follow that and have kept my Mac using bash. But the principle is the same, ensure the FPC you want to use appears first in your PATH statement.
Some other, less important suggestions -
- You might be better off using the fixes version of FPC (if it has what you need) rather that the bleeding edge 'main', 'trunk' whatever.
- If you install fpc323 again, perhaps you would be better off installing it in user space, somewhere like $HOME/bin/FPC - that way, don't need root access to install or modify and its all in one place by itself, very easy to blow it away and start again.
Davo