Forum > Other OS

Switch FPC Version On Mac

(1/1)

emhartner:
I installed trunk this last week (fpc version 3.3.1).  However, fpc -iV is still returning 3.0.4.  How do I switch fpc to the newer version?

Thank you,
Eric

Jonas Maebe:
The FPC compiler binaries are installed in /usr/local/lib/fpc/<version>. You can call the 3.3.1 version explicitly by invoking /usr/local/lib/fpc/3.3.1/ppcx64 (or ppc386)

The default FPC compiler binaries are determined by the symbolic links in /usr/local/bin. You can replace those with the following commands in Terminal:
* sudo ln -sf /usr/local/lib/fpc/3.3.1/ppcx64 /usr/local/bin/ppcx64
* sudo ln -sf /usr/local/lib/fpc/3.3.1/ppc386 /usr/local/bin/ppc386

emhartner:

--- Quote ---The default FPC compiler binaries are determined by the symbolic links in /usr/local/bin. You can replace those with the following commands in Terminal:
* sudo ln -sf /usr/local/lib/fpc/3.3.1/ppcx64 /usr/local/bin/ppcx64
* sudo ln -sf /usr/local/lib/fpc/3.3.1/ppc386 /usr/local/bin/ppc386
--- End quote ---

Excellent!

Thank you.

Navigation

[0] Message Index

Go to full version