Other macOS installation options
Official FPC and Lazarus Installation Options
For the officially supported FPC and Lazarus installation options, please see Installing Lazarus on macOS. It is recommended that new users use the officially supported options.
Other FPC Installation Options
Fink
You could also consider using Fink, a package manager for macOS to install FPC. Fink also offers numerous Free Pascal crosscompilers for many processors and operating systems. An extra bonus is easy installation as well as clean removal of FPC and a huge number of other open source software packages.
fpcupdeluxe
You could also consider using fpcupdeluxe to install FPC.
MacPorts
You could also consider using MacPorts, to install FPC. An extra bonus is easy installation as well as clean removal of FPC and a huge number of other open source software packages.
Daily development version
An automated daily build of the development version of FPC for aarch64 (Apple M1 processor) can be downloaded from SourceForge.
1. Move fpc-src to your home directory
2. Install with a script like:
#!/bin/sh
cd ~/fpc-src
sudo make FPC=$PWD/ppca64 OPT="-ap -FD/Library/Developer/CommandLineTools/usr/bin
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" installThe highlighted lines should be all on one line.
Other Lazarus IDE installation options
Fink
You could also consider using Fink, a package manager for macOS to install Lazarus. Note at the time of writing (Early 2020) Fink offers Lazarus 2.0.6. The extra bonus of Fink is easy installation as well as clean removal of a huge number of other open source software packages, including Free Pascal cross-compilers for many processors and systems. The choice for Lazarus is between a Carbon or Cocoa look, a gtk2 look, a Qt4-based and a Qt5-based version:
$ fink install lazarus-aqua
// or
$ fink install lazarus-cocoa
// or
$ fink install lazarus-gtk2
// or
$ fink install lazarus-qt4
// or
$ fink install lazarus-qt5You will be asked, whether to install a number of dependencies, including the Free Pascal Compiler, the Lazarus sources. Simply hit RETURN at the prompt and go for a coffee. It may take quite some time to build all packages, in particular on older Macs.
After installation, Lazarus can be started from the folder /Applications/Fink/. The actual details of FPC and Lazarus are in subdirectories of /sw
With any Lazarus package from Fink, these widget sets are supported for your program on macOS:
carbon (Aqua), cocoa, gtk2, qt4 (Aqua), qt5 (Aqua), nogui, win32, win64 and wince.
If you install FPC from Fink, you will be fine downloading Lazarus source and compiling as detailed below. However, it is possibly not a good idea to mix Fink FPC with the Sourceforge binary install of Lazarus.
fpcupdeluxe
You could also consider using fpcupdeluxe to install Lazarus.
MacPorts
MacPorts also has a package description of the cocoa-64 bit Intel and ARM version of Lazarus. Install it with:
$ sudo port install lazarusDaily development version
An automated daily build of the development version of the Lazarus IDE for aarch64 (Apple M1 processor) can be downloaded from SourceForge and for Intel x86_64 also from SourceForge.
1. Move lazarus-src to your home directory
2. Use a script to start Lazarus like:
#!/bin/sh
open ~/lazarus-src/lazarus.app --args "--pcp=~/.laz_dev"From the Free Pascal wiki, page "Other macOS installation options", as it stood on 2023-03-20 after a change by Mischi, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.
Edited on wiki.freepascal.org by 3 people, 2021–2023
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Trev | OthermacOS Installation options for FPC + Lazarus | |
| Trev | Other FPC Installation Options: Add MacPorts; enhance Fink | |
| Trev | Daily development version: New section | |
| Trev | Daily development version: Fix formatting (minor) | |
| Trev | Daily development version: Fix heading level (minor) | |
| Trev | Daily development version: New section | |
| Alextp | Other FPC Installation Options | |
| Alextp | Other Lazarus IDE installation options: case of name | |
| Trev | Daily development version: Updated to not require full Xcode installation | |
| Mischi | MacPorts: needs sudo | |
| Mischi | MacPorts: add arm |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
