│English (en) │ 한국어 (ko) │ русский (ru) │
Mac OS X 10.6 (Snow Leopard). In the Carbon or Cocoa IDE, you need to set the Target to the 64 bit processor and select the Cocoa Widget set. Mac Portal for an.
This article applies to macOS only.
See also: Multiplatform Programming Guide
Installing Lazarus on a Mac is not particularly difficult but it is critical that you do the install in the correct order. Skipping steps will almost certainly lead to tears. In brief, here is what you need to do:
These steps are explained in more detail below.
Installation
The detailed instructions assume a recent version of macOS on your Mac, a recent version of Xcode from Apple and a recent version of Lazarus. On the Legacy Information page, you will see older information that may be relevant if you are using older components. You can assist by replacing out of date info, either deleting it, or, if it may help someone working with a legacy project, moving it to the bottom of the page.
In general, this is about using both the Carbon and Cocoa Widget Set. While Carbon was once seen as a little more stable, with the release Lazarus 2.0.8 the 64 bit Cocoa Widget Set has now surpassed Carbon and should be considered seriously for any new projects. Carbon was intentionally (by Apple) limited to 32 bits and you should be aware that it has been removed completely from macOS 10.15 Catalina which only supports 64 bit Cocoa.
Step 1: Download Xcode
You need the Apple Developer tools, which are a part of the Xcode development environment.
Xcode 11.3.1 for use on macOS 10.14 Mojave must now be installed by downloading it from Apple Developer Connection (ADC), which requires free registration. Xcode 11.4.x for use on macOS 10.15 Catalina can be installed from the Mac App store. Note that you must first move any old Xcode versions from the Applications folder into the trash or rename the Xcode app (eg Xcode.app to Xcode_1014.app). You can select which version of Xcode to use with the command line utility xcode-select.
Older systems:
The developer tools can be installed from the original macOS installation disks or a newer copy downloaded from the Apple Developer Connection (ADC), which requires free registration. Download the Xcode file, it will end up in your Downloads directory as a zip file. Click it. It is unarchived into your Downloads directory. You may be happy with it there but maybe not. Other users will see the path to it but be unable to use it. And it is untidy there. So I moved mine and then told xcode-select where it was moved to (in a terminal) -
Step 2: Xcode Command Line Tools
This is shown here as a separate step because it really is a separate step in addition to Step 1. Don't confuse this with the internal Xcode command line tools that the Xcode GUI will tell you are already installed. Lazarus cannot use those Xcode internal command line tools, so do the following (it is quick and easy)-
Step 3: FPC, FPC Source
Download and install the Free Pascal Compiler (FPC) and source. A compatible FPC (and source) must be installed before you install Lazarus. You have a number of options.
Source Forge
Download the Free Pascal Compiler (FPC) and FPC source from the Lazarus IDE file area. When you arrive at that file area, choose the correct version of your operating system. The vast majority of Mac users should now choose the 64 bit packages in the Lazarus macOS x86-64 directory. Every Mac computer since late 2006 has been 64 bit capable. The fact that Apple has completely dropped all 32 bit support from macOS 10.15 Catalina (released in October 2019) is another reason to choose the 64 bit packages.
If you are choose to install FPC 3.2.0 rather than FPC 3.0.4, you will need to patch one line and recompile it before you can use it with Lazarus 2.0.8. See further Known problems below.
These binary install kits are built by the FPC/Lazarus developers and track formal releases. As these install kits are not approved by Apple, you need to hold down the Control key, click the package and choose Open and confirm you want to install from an Unknown Developer.
You might like to apply a simple and quick test of FPC at this stage - Testing FPC installation.
Other FPC Optionsfpcupdeluxe
You could also consider using fpcupdeluxe to install FPC and, perhaps Lazarus.
fink
Alternatively, you can use fink, a package manager for macOS to install FPC. 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 crosscompilers 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:
You 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, its possibly not a good idea to mix fink FPC with the Sourceforge binary install of Lazarus.
MacPorts
MacPorts has also a package description of the cocoa-64 bit version of lazarus 2.0.6. Install it with:
Step 4: Install the Lazarus IDE
Download and install the Lazarus IDE from the Lazarus IDE file area. When you arrive at that file area, choose the correct version of your operating system. The vast majority of Mac users should now choose the 64 bit packages in the Lazarus macOS x86-64 directory. Every Mac computer since late 2006 has been 64 bit capable. The fact that Apple has completely dropped all 32 bit support from macOS 10.15 Catalina (released in October 2019) is another reason to choose the 64 bit packages.
Step 5: Configure the Debugger
In versions of Lazarus 1.8.4 and earlier, you needed to use gdb as a debugger, slow to install and hard to sign. Since Lazarus 2.0.0 you can (and should) use lldb, a debugger provided by Apple, no signing required.
Assuming you have installed what is necessary and started Lazarus, all that remains is configuring the debugger. If you don't do this now, Lazarus will try to use gdb and fail.
First, click Tools > Options > Debugger. Top right of the window now open has a label, 'Debugger type and path', you must set both. Select 'LLDB debugger (with fpdebug) (Beta)'.
If it is not shown in the selection list, see Installing LazDebuggerFpLLdb below. The XCode command line tools install lldb to the /usr/bin directory. Save those settings and you can now try to compile the almost nothing program that Lazarus has kindly provided for you (click the small green triangle near top left).
Next you see a puzzling question, see image below. Choose a 'Debug Format' from one of the offered -
Martin_fr, the person who has given us this interface between Lazarus and lldb, suggests you use 'dwarf3' . Then, you need to enter your password, a macOS cuteness because one application appears to be interfering with another. In this case, that's fine!
When running the debugger from time to time you will be asked for your password to allow debugging. This is for your own safety.
Extra Information on using lldb
A great deal of information about using lldb appears in this forum thread. Here are a few gems, again, from Martin_fr:
In the unexpected case of problems, it may be worth trying 'dwarf with sets' instead of just 'dwarf3'.
The 'debug info' setting only affects the units directly in your project. However, units in packages may have debug info too. This can be:
If you change settings for a package, you might want to check which package you expect to step into when debugging. Packages you do not step into, do not need debug info.
If you use a type from a package (such as TForm from LCL) it is enough that your unit (in which you declare the variable / must declare and use a variable to include the type) has debug info. Reducing the number of packages with debug info (including those that default to have debug info), can shorten the debuggers start-up time.
Also it may be worth comparing (it has not been tested) the debuggers start up time for the same settings, only changing the checkbox 'use external debug info'.
This needs to be only set in your project. If set in your project it will affect all packages. (If set in a package it will do nothing / at least should..)
Installing LazDebuggerFpLLdb
If you installed from source and used the bigide parameter to make, then the correct debugger will be installed, as a package, and ready to go. If, however, you installed in another way, it may, or may not be there. From the main IDE screen, click Packages->Install/UninstallPackages. Shown is two lists of packages, the list on the left is installed, the list on the right is available to install. Look for LazDebuggerFpLldb (exactly that, there are some similar named but less suitable packages). If it is on the right hand side, click it, press 'Install Selection' and then 'Save and rebuild IDE'. This will take a little time, the IDE will shutdown and restart and all should be well. Now jump back up the page and continue configuring the debugger.
Cocoa 64 bit vs Carbon 32 bit
Lazarus using the Apple 64 bit Cocoa framework should now meet the needs of users. The Apple 32 bit Carbon framework works pretty much as expected but you are advised to try Cocoa first, because Apple has dropped support for 32 bit applications and the Carbon framework from macOS 10.15 Catalina which was released in October 2019.
Alternatives include QT and GTK2+, both requiring additional libraries and GTK2+ on the Mac appears to get little attention these days. QT on the Mac does have some strong supporters on the Lazarus forum.
Cocoa is now undeniably the future on the Mac. It is possible to build an all Cocoa version of Lazarus with release 2.0.0 and later. It is also possible to make a Carbon install of Lazarus (unless you are running macOS 10.15 Catalina or later) and use that to generate Cocoa 64 bit binaries.
In the Carbon or Cocoa IDE, you need to set the Target to the 64 bit processor and select the Cocoa Widget set:
Compatibility
Not every combination of Lazarus and Free Pascal is compatible with every installation of macOS. Please refer to the following table in order to find the correct version for your development environment:
* Restrictions apply to debugging with gdb.
** See Installing Lazarus 2.0.8 with FPC 3.2.0 for macOS 10.10 and earlier for instructions.
*** See Installing Lazarus 2.0.8 with FPC 3.2.0 for macOS 10.11+ for instructions.
x = 0, 2 or 4; y = 0, 2, 4, 6 or 8
Installing non-release versions of the Lazarus IDELazarus Fixes 2.0
There are a number of reasons why you may be better off using a non-release version of Lazarus, specifically, fixes_2_0. Particularly:
Precompiled binaries based on fixes_2_0 are not available from SourceForge but can be obtained from fpcupdeluxe. But here we will discuss downloading source and building. A little slow initially but very reliable and a great test of your compiler install ! You will need svn which is included in all recent versions of the Xcode command line tools which you should have already installed (see Xcode Command Line Tools above).
You might like to put a small script in your $HOME/bin directory and even set a path to it (very UNIX!)
To keep your fixes_2_0 installation up to date is as easy as:
Lazarus Trunk
Precompiled binaries based on trunk are not available from SourceForge, so here's how to download the trunk source using svn and build the Lazarus IDE. You will need svn which is included in all recent versions of the Xcode command line tools which you should have already installed (see Xcode Command Line Tools above).
To update your existing trunk source:
Installing non-release versions of FPCFPC Trunk
Note that since svn trunk is by definition still under development, some of the features may still change before they end up in a release version.
The source code is kept in a version control system called subversion or 'svn for short:
Create a directory where you would like to put the source (eg fpc in your home directory). You don't need to be root to do this. Any normal user can do this. Open an Applications > Utilities > Terminal and do the following:
This will create a directory called 'fpc', which can be later used in the IDE, and download the FPC source to it.
To subsequently download/update the latest source changes you can simply do:
To build and install FPC:
Known issues and solutionsInstalling Lazarus 2.0.8 with FPC 3.2.0 for macOS 10.10 and earlier
Note that:
Now rebuild Lazarus 2.0.8 with this build_laz.sh shell script:
macOS 10.8 Mountain Lion additional steps
Now follow the steps above.
Installing Lazarus 2.0.8 with FPC 3.2.0 for macOS 10.11+
Note that:
Upgrading from Mojave (10.14) to Catalina (10.15)
to
Building the FPC compiler from Mojave (10.14) onwards
To find the crt1.10.5.o file when building a later Free Pascal Compiler version from source, you need to specify:
on the make command line because FPC ignores the /etc/fpc.cfg configuration file during builds of itself.
Uninstalling Lazarus and Free PascalInstalled using fink
The complete uninstall of all fpc and lazarus packages is done with:
If you want to preserve changes to the preference file /sw/etc/fpc.cfg, do:
For the removal of the Lazarus preference folder and files in your home directory, see below ( Lazarus preference folder).
Installed from packages or source
Normally you uninstall an application on macOS simply by dragging it from the Applications folder to the trash. But because Lazarus and Free Pascal are development tools, they're installed in several folders that you don't normally see in Finder.
You can copy and save the commands below to file uninstallLaz.sh and run it if you need to uninstall Lazarus and Free Pascal. You can usually install newer versions of Lazarus and Free Pascal over older versions, but as with most software it's not a bad idea to clean out everything before you install a newer version. This list of commands should also give you a sense of where the various pieces of Lazarus and Free Pascal are located.
Note that this assumes you have version 3.0.4 of Free Pascal installed. If you have a different version, change the two relevant commands to specify your version.
To run this script, change to the directory where it's stored and enter:
Then enter your password when prompted.
Lazarus preference folder .lazarus in the home directory
Note: Lazarus also creates a .lazarus folder in your home directory where it stores environment settings and a list of recently opened projects and files. You can leave this folder alone if you want the new version of Lazarus you're installing to use your old settings. macOS normally doesn't show files or folders whose names start with a dot (.). To see this folder and its contents, open an Applications > Utilities > Terminal and enter the following in the terminal window:
To remove it, execute the following commands:
See also
Retrieved from 'https://wiki.freepascal.org/index.php?title=Installing_Lazarus_on_macOS&oldid=137723'
This article applies to macOS only.
See also: Multiplatform Programming Guide
Important Note: OS X 10.7 Lion has been replaced by OS X 10.8 Mountain Lion.The 10.7.4 update is recommended for all OS X Lion users and includes general operating system fixes that improve the stability, compatibility, and security of your Mac including fixes that:Resolve an issue where the “Reopen windows when logging back in” setting is always enabledImprove compatibility with certain British third-party USB keyboardsAddress an issue that may prevent files from being saved to a serverImprove the reliability of copying files to an SMB server. Terraria for mac.
Installing Lazarus on a Mac is not particularly difficult but it is critical that you do the install in the correct order. Skipping steps will almost certainly lead to tears. In brief, here is what you need to do:
These steps are explained in more detail below.
Installation
The detailed instructions assume a recent version of macOS on your Mac, a recent version of Xcode from Apple and a recent version of Lazarus. On the Legacy Information page, you will see older information that may be relevant if you are using older components. You can assist by replacing out of date info, either deleting it, or, if it may help someone working with a legacy project, moving it to the bottom of the page.
![]()
In general, this is about using both the Carbon and Cocoa Widget Set. While Carbon was once seen as a little more stable, with the release Lazarus 2.0.8 the 64 bit Cocoa Widget Set has now surpassed Carbon and should be considered seriously for any new projects. Carbon was intentionally (by Apple) limited to 32 bits and you should be aware that it has been removed completely from macOS 10.15 Catalina which only supports 64 bit Cocoa.
Step 1: Download Xcode
You need the Apple Developer tools, which are a part of the Xcode development environment.
Xcode 11.3.1 for use on macOS 10.14 Mojave must now be installed by downloading it from Apple Developer Connection (ADC), which requires free registration. Xcode 11.4.x for use on macOS 10.15 Catalina can be installed from the Mac App store. Note that you must first move any old Xcode versions from the Applications folder into the trash or rename the Xcode app (eg Xcode.app to Xcode_1014.app). You can select which version of Xcode to use with the command line utility xcode-select.
Older systems:
The developer tools can be installed from the original macOS installation disks or a newer copy downloaded from the Apple Developer Connection (ADC), which requires free registration. Download the Xcode file, it will end up in your Downloads directory as a zip file. Click it. It is unarchived into your Downloads directory. You may be happy with it there but maybe not. Other users will see the path to it but be unable to use it. And it is untidy there. So I moved mine and then told xcode-select where it was moved to (in a terminal) -
Step 2: Xcode Command Line Tools
This is shown here as a separate step because it really is a separate step in addition to Step 1. Don't confuse this with the internal Xcode command line tools that the Xcode GUI will tell you are already installed. Lazarus cannot use those Xcode internal command line tools, so do the following (it is quick and easy)-
Step 3: FPC, FPC Source
Download and install the Free Pascal Compiler (FPC) and source. A compatible FPC (and source) must be installed before you install Lazarus. You have a number of options.
Source Forge
Download the Free Pascal Compiler (FPC) and FPC source from the Lazarus IDE file area. When you arrive at that file area, choose the correct version of your operating system. The vast majority of Mac users should now choose the 64 bit packages in the Lazarus macOS x86-64 directory. Every Mac computer since late 2006 has been 64 bit capable. The fact that Apple has completely dropped all 32 bit support from macOS 10.15 Catalina (released in October 2019) is another reason to choose the 64 bit packages.
If you are choose to install FPC 3.2.0 rather than FPC 3.0.4, you will need to patch one line and recompile it before you can use it with Lazarus 2.0.8. See further Known problems below.
Python Ide For Mac Os
These binary install kits are built by the FPC/Lazarus developers and track formal releases. As these install kits are not approved by Apple, you need to hold down the Control key, click the package and choose Open and confirm you want to install from an Unknown Developer.
You might like to apply a simple and quick test of FPC at this stage - Testing FPC installation.
Other FPC Optionsfpcupdeluxe
You could also consider using fpcupdeluxe to install FPC and, perhaps Lazarus.
fink
Alternatively, you can use fink, a package manager for macOS to install FPC. 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 crosscompilers 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:
You 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, its possibly not a good idea to mix fink FPC with the Sourceforge binary install of Lazarus.
MacPorts
MacPorts has also a package description of the cocoa-64 bit version of lazarus 2.0.6. Install it with:
Step 4: Install the Lazarus IDE
Download and install the Lazarus IDE from the Lazarus IDE file area. When you arrive at that file area, choose the correct version of your operating system. The vast majority of Mac users should now choose the 64 bit packages in the Lazarus macOS x86-64 directory. Every Mac computer since late 2006 has been 64 bit capable. The fact that Apple has completely dropped all 32 bit support from macOS 10.15 Catalina (released in October 2019) is another reason to choose the 64 bit packages.
Step 5: Configure the Debugger
In versions of Lazarus 1.8.4 and earlier, you needed to use gdb as a debugger, slow to install and hard to sign. Since Lazarus 2.0.0 you can (and should) use lldb, a debugger provided by Apple, no signing required.
Assuming you have installed what is necessary and started Lazarus, all that remains is configuring the debugger. If you don't do this now, Lazarus will try to use gdb and fail.
First, click Tools > Options > Debugger. Top right of the window now open has a label, 'Debugger type and path', you must set both. Select 'LLDB debugger (with fpdebug) (Beta)'.
If it is not shown in the selection list, see Installing LazDebuggerFpLLdb below. The XCode command line tools install lldb to the /usr/bin directory. Save those settings and you can now try to compile the almost nothing program that Lazarus has kindly provided for you (click the small green triangle near top left).
Next you see a puzzling question, see image below. Choose a 'Debug Format' from one of the offered -
Martin_fr, the person who has given us this interface between Lazarus and lldb, suggests you use 'dwarf3' . Then, you need to enter your password, a macOS cuteness because one application appears to be interfering with another. In this case, that's fine!
When running the debugger from time to time you will be asked for your password to allow debugging. This is for your own safety.
Extra Information on using lldb
A great deal of information about using lldb appears in this forum thread. Here are a few gems, again, from Martin_fr:
In the unexpected case of problems, it may be worth trying 'dwarf with sets' instead of just 'dwarf3'.
The 'debug info' setting only affects the units directly in your project. However, units in packages may have debug info too. This can be:
If you change settings for a package, you might want to check which package you expect to step into when debugging. Packages you do not step into, do not need debug info.
If you use a type from a package (such as TForm from LCL) it is enough that your unit (in which you declare the variable / must declare and use a variable to include the type) has debug info. Reducing the number of packages with debug info (including those that default to have debug info), can shorten the debuggers start-up time.
Also it may be worth comparing (it has not been tested) the debuggers start up time for the same settings, only changing the checkbox 'use external debug info'.
This needs to be only set in your project. If set in your project it will affect all packages. (If set in a package it will do nothing / at least should..)
Installing LazDebuggerFpLLdb
If you installed from source and used the bigide parameter to make, then the correct debugger will be installed, as a package, and ready to go. If, however, you installed in another way, it may, or may not be there. From the main IDE screen, click Packages->Install/UninstallPackages. Shown is two lists of packages, the list on the left is installed, the list on the right is available to install. Look for LazDebuggerFpLldb (exactly that, there are some similar named but less suitable packages). If it is on the right hand side, click it, press 'Install Selection' and then 'Save and rebuild IDE'. This will take a little time, the IDE will shutdown and restart and all should be well. Now jump back up the page and continue configuring the debugger.
Cocoa 64 bit vs Carbon 32 bit
Lazarus using the Apple 64 bit Cocoa framework should now meet the needs of users. The Apple 32 bit Carbon framework works pretty much as expected but you are advised to try Cocoa first, because Apple has dropped support for 32 bit applications and the Carbon framework from macOS 10.15 Catalina which was released in October 2019.
Pascal Programming Ide
Alternatives include QT and GTK2+, both requiring additional libraries and GTK2+ on the Mac appears to get little attention these days. QT on the Mac does have some strong supporters on the Lazarus forum.
Cocoa is now undeniably the future on the Mac. It is possible to build an all Cocoa version of Lazarus with release 2.0.0 and later. It is also possible to make a Carbon install of Lazarus (unless you are running macOS 10.15 Catalina or later) and use that to generate Cocoa 64 bit binaries.
In the Carbon or Cocoa IDE, you need to set the Target to the 64 bit processor and select the Cocoa Widget set:
Compatibility
Not every combination of Lazarus and Free Pascal is compatible with every installation of macOS. Please refer to the following table in order to find the correct version for your development environment:
Best sketching software for os-x using a stylus pen. You can turn handwritten notes into MS Word files with ink-to-text actions in the OneNote and Nebo apps. But their real power comes from extended usability.
* Restrictions apply to debugging with gdb.
** See Installing Lazarus 2.0.8 with FPC 3.2.0 for macOS 10.10 and earlier for instructions.
*** See Installing Lazarus 2.0.8 with FPC 3.2.0 for macOS 10.11+ for instructions.
x = 0, 2 or 4; y = 0, 2, 4, 6 or 8
Installing non-release versions of the Lazarus IDELazarus Fixes 2.0
There are a number of reasons why you may be better off using a non-release version of Lazarus, specifically, fixes_2_0. Particularly:
Precompiled binaries based on fixes_2_0 are not available from SourceForge but can be obtained from fpcupdeluxe. But here we will discuss downloading source and building. A little slow initially but very reliable and a great test of your compiler install ! You will need svn which is included in all recent versions of the Xcode command line tools which you should have already installed (see Xcode Command Line Tools above).
You might like to put a small script in your $HOME/bin directory and even set a path to it (very UNIX!) Lotus notes client for mac os x yosemite.
To keep your fixes_2_0 installation up to date is as easy as:
Lazarus Trunk
Precompiled binaries based on trunk are not available from SourceForge, so here's how to download the trunk source using svn and build the Lazarus IDE. You will need svn which is included in all recent versions of the Xcode command line tools which you should have already installed (see Xcode Command Line Tools above).
To update your existing trunk source:
Installing non-release versions of FPCFPC Trunk
Note that since svn trunk is by definition still under development, some of the features may still change before they end up in a release version.
The source code is kept in a version control system called subversion or 'svn for short:
Create a directory where you would like to put the source (eg fpc in your home directory). You don't need to be root to do this. Any normal user can do this. Open an Applications > Utilities > Terminal and do the following:
This will create a directory called 'fpc', which can be later used in the IDE, and download the FPC source to it.
To subsequently download/update the latest source changes you can simply do:
To build and install FPC:
Known issues and solutionsInstalling Lazarus 2.0.8 with FPC 3.2.0 for macOS 10.10 and earlier
Note that:
Now rebuild Lazarus 2.0.8 with this build_laz.sh shell script:
macOS 10.8 Mountain Lion additional steps
Now follow the steps above.
Pascal Ide For MacInstalling Lazarus 2.0.8 with FPC 3.2.0 for macOS 10.11+
![]()
Note that:
Upgrading from Mojave (10.14) to Catalina (10.15)
to
Building the FPC compiler from Mojave (10.14) onwards
To find the crt1.10.5.o file when building a later Free Pascal Compiler version from source, you need to specify:
on the make command line because FPC ignores the /etc/fpc.cfg configuration file during builds of itself.
Uninstalling Lazarus and Free PascalInstalled using fink
The complete uninstall of all fpc and lazarus packages is done with:
If you want to preserve changes to the preference file /sw/etc/fpc.cfg, do:
For the removal of the Lazarus preference folder and files in your home directory, see below ( Lazarus preference folder).
Installed from packages or sourcePascal Programming Ide For Mac Os X High Sierra Download
Normally you uninstall an application on macOS simply by dragging it from the Applications folder to the trash. But because Lazarus and Free Pascal are development tools, they're installed in several folders that you don't normally see in Finder.
You can copy and save the commands below to file uninstallLaz.sh and run it if you need to uninstall Lazarus and Free Pascal. You can usually install newer versions of Lazarus and Free Pascal over older versions, but as with most software it's not a bad idea to clean out everything before you install a newer version. This list of commands should also give you a sense of where the various pieces of Lazarus and Free Pascal are located.
Pascal Programming Ide For Mac Os X El Capitan
Note that this assumes you have version 3.0.4 of Free Pascal installed. If you have a different version, change the two relevant commands to specify your version.
To run this script, change to the directory where it's stored and enter:
Then enter your password when prompted.
Pascal Ide DownloadLazarus preference folder .lazarus in the home directory
Note: Lazarus also creates a .lazarus folder in your home directory where it stores environment settings and a list of recently opened projects and files. You can leave this folder alone if you want the new version of Lazarus you're installing to use your old settings. macOS normally doesn't show files or folders whose names start with a dot (.). To see this folder and its contents, open an Applications > Utilities > Terminal and enter the following in the terminal window:
To remove it, execute the following commands:
See alsoPascal Programming Ide For Mac Os X
Retrieved from 'https://wiki.freepascal.org/index.php?title=Installing_Lazarus_on_macOS&oldid=137723'
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |