Difference between revisions of "Installing Lazarus on macOS"

From Free Pascal wiki
Jump to navigationJump to search
Line 1: Line 1:
=== How to update fpc and Lazarus to the newest version ===
+
= Installation =
  
==== For 10.2 to 10.4 ====
+
== 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):
 +
: http://developer.apple.com/.
 +
 
 +
== Free Pascal Compile ==
 +
 
 +
;Free Pascal Compiler:
 +
Then download and install the Free Pascal Compiler (at least 2.2.0) from:
 +
: https://sourceforge.net/project/showfiles.php?group_id=89339
 +
 
 +
For Lazarus you need the FPC sources as well:
 +
 
 +
*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].
 +
 
 +
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
 +
 
 +
= How to update fpc and Lazarus to the newest version =
 +
 
 +
== For 10.2 to 10.4 ==
  
 
Install SVN for Mac OS X: A good package is provided by [http://www.codingmonkeys.de/mbo/ Martin Ott].
 
Install SVN for Mac OS X: A good package is provided by [http://www.codingmonkeys.de/mbo/ Martin Ott].
Line 7: Line 34:
 
10.5 users don't need that because it already installs subversion by default via the XCodeTools package.
 
10.5 users don't need that because it already installs subversion by default via the XCodeTools package.
  
*To use the development version of fpc see [[Installing_Lazarus#Installing_Free_Pascal_under_Mac_OS_X]]
 
 
*To use the development version of lazarus see [[Installing_Lazarus#Downloading_Lazarus_SVN]]
 
*To use the development version of lazarus see [[Installing_Lazarus#Downloading_Lazarus_SVN]]
  

Revision as of 20:49, 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):

http://developer.apple.com/.

Free Pascal Compile

Free Pascal Compiler

Then download and install the Free Pascal Compiler (at least 2.2.0) from:

https://sourceforge.net/project/showfiles.php?group_id=89339

For Lazarus you need the FPC sources as well:

  • 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

How to update fpc and Lazarus to the newest version

For 10.2 to 10.4

Install SVN for Mac OS X: A good package is provided by Martin Ott.

10.5 users don't need that because it already installs subversion by default via the XCodeTools package.

See Also