Recent

Author Topic: Switch FPC Version On Mac  (Read 3435 times)

emhartner

  • Jr. Member
  • **
  • Posts: 52
Switch FPC Version On Mac
« on: July 14, 2019, 03:06:52 pm »
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

  • Hero Member
  • *****
  • Posts: 1058
Re: Switch FPC Version On Mac
« Reply #1 on: July 14, 2019, 03:11:23 pm »
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

  • Jr. Member
  • **
  • Posts: 52
Re: Switch FPC Version On Mac
« Reply #2 on: July 14, 2019, 03:30:07 pm »
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

Excellent!

Thank you.

 

TinyPortal © 2005-2018