Difference between revisions of "Installing Lazarus on macOS"
Line 15: | Line 15: | ||
You need the latest stable released FPC installed in order to compile the development version. | You need the latest stable released FPC installed in order to compile the development version. | ||
+ | |||
+ | === Download and install a compiler === | ||
Download and install the FPC package: https://sourceforge.net/project/showfiles.php?group_id=89339 | Download and install the FPC package: https://sourceforge.net/project/showfiles.php?group_id=89339 | ||
Line 21: | Line 23: | ||
The 2.2.0 version has a bug and can not be used to compile the 2.2.3 nor 2.3.1. You must download and install the 2.2.2. Some daily snapshots can be found [http://snapshots.lazarus.shikami.org/lazarus/ here] | The 2.2.0 version has a bug and can not be used to compile the 2.2.3 nor 2.3.1. You must download and install the 2.2.2. Some daily snapshots can be found [http://snapshots.lazarus.shikami.org/lazarus/ here] | ||
− | == | + | === Download the sources via svn === |
− | |||
− | |||
− | |||
− | |||
− | + | The sources are kept in a version control system called subversion or short '''svn''': | |
*10.5 already installs svn. Users of earlier versions must install SVN for Mac OS X: A good package is provided by [http://www.codingmonkeys.de/mbo/ Martin Ott]. You can also use fink. SVN clients with GUI (graphical user interface) are available from [http://www.versiontracker.com Versiontracker]. | *10.5 already installs svn. Users of earlier versions must install SVN for Mac OS X: A good package is provided by [http://www.codingmonkeys.de/mbo/ Martin Ott]. You can also use fink. SVN clients with GUI (graphical user interface) are available from [http://www.versiontracker.com Versiontracker]. | ||
Line 41: | Line 39: | ||
[]$ svn up | []$ svn up | ||
− | + | Building fpc | |
+ | []$ make clean all | ||
+ | []$ sudo make install | ||
− | + | Then download lazarus | |
− | + | []$ svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus | |
− | + | This will create a directories called 'fpc', which can be later used in the IDE. | |
− | + | Hint: To download/update the latest changes you can simply do | |
− | + | []$ cd /Users/username/freepascal/lazarus | |
+ | []$ svn up | ||
− | + | Building lazarus | |
+ | []$ make clean all | ||
== See Also == | == See Also == |
Revision as of 21:05, 14 July 2008
Installation
Apple Developer Tools
You need the Apple Developer tools. They are included on the original OSX installation CDs, or download at ADC (free registration required):
Install Packages / Released version
Download and install the three packages FPC, FPCSrc and Lazarus in this order: https://sourceforge.net/project/showfiles.php?group_id=89339
This is the easiest way to install Lazarus on Mac OS X. To get the current development version see below.
Install from Source / Development version
You need the latest stable released FPC installed in order to compile the development version.
Download and install a compiler
Download and install the FPC package: https://sourceforge.net/project/showfiles.php?group_id=89339
There are two development versions of the compiler: 2.2.x is stable version without new features - only bug fixes. And the unstable 2.3.x with lots of new features and bugs. The 2.2.0 version has a bug and can not be used to compile the 2.2.3 nor 2.3.1. You must download and install the 2.2.2. Some daily snapshots can be found here
Download the sources via svn
The sources are kept in a version control system called subversion or short svn:
- 10.5 already installs svn. Users of earlier versions must install SVN for Mac OS X: A good package is provided by Martin Ott. You can also use fink. SVN clients with GUI (graphical user interface) are available from Versiontracker.
Create a directory, where you would like to put the sources. You don't need to be root to do this. Any normal user can do this. First create a directory for fpc
- (e.g. /Users/username/freepascal)
then open a terminal and do the following:
[]$ svn co http://svn.freepascal.org/svn/fpc/trunk fpc
This will create a directories called 'fpc', which can be later used in the IDE. Hint: To download/update the latest changes you can simply do
[]$ cd /Users/username/freepascal/fpc []$ svn up
Building fpc
[]$ make clean all []$ sudo make install
Then download lazarus
[]$ svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
This will create a directories called 'fpc', which can be later used in the IDE. Hint: To download/update the latest changes you can simply do
[]$ cd /Users/username/freepascal/lazarus []$ svn up
Building lazarus
[]$ make clean all