Difference between revisions of "Installing Lazarus on macOS/ko"

From Free Pascal wiki
Jump to navigationJump to search
Line 27: Line 27:
 
FPC 패키지 다운 받아서 설치하십시오: https://sourceforge.net/project/showfiles.php?group_id=89339
 
FPC 패키지 다운 받아서 설치하십시오: https://sourceforge.net/project/showfiles.php?group_id=89339
  
 +
컴파일러의 개발 버전은 두 개가 있습니다: 2.2.x 버전은 단지 버그만 수정된 - 새로운 기능이 없는 안정 버전입니다. 2.3.x 버전은 버그를 포함하지만 새로운 기능이 많이 포함된 비안정 버전입니다. 2.2.0 버전은 버그가 있어 2.2.3 버전이나 2.3.1 버전을 컴파일 할 수 없으니 반드시 2.2.2 버전을 다운 받아서 설치하시기 바랍니다.
 
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.
 
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 [http://snapshots.lazarus.shikami.org/lazarus/ here]. Keep in mind that these are daily snapshots and that you can have bad luck and get a buggy version. The probability is about 1:30. So if the version is buggy try another day or use the released packages instead.
 
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]. Keep in mind that these are daily snapshots and that you can have bad luck and get a buggy version. The probability is about 1:30. So if the version is buggy try another day or use the released packages instead.

Revision as of 21:55, 24 January 2009

Template:Installing Lazarus on MacOS X

설치

애플 개발 툴

애플 개발 툴이 필요합니다. 원본 OSX 설치 CD에 포함되어 있으며, ADC에서 다운 받을 수 있습니다 (무료 등록이 필요합니다):

http://developer.apple.com/.

패키지로 설치하기 / 릴리즈 버전

FPC와 FPCSrc, Lazarus 순서대로 세개의 패키지를 다운 받아서 설치합니다: https://sourceforge.net/project/showfiles.php?group_id=89339

이것이 Mac OS X에서 Lazarus를 설치하는 가장 쉬운 방법입니다.

다른 방법으로는, Mac OS X의 패키지 관리자인 fink를 사용해서 Lazarus를 설치할 수도 있습니다.

현재의 개발 버전을 얻기 위해서는 아래를 참고하세요.

소스로 설치하기 / 개발 버전

개발 버전을 컴파일 하기 위해서는 FPC의 최신 안정 버전이 설치되어 있어야 합니다.

컴파일러 다운 받아서 설치하기

FPC 패키지 다운 받아서 설치하십시오: https://sourceforge.net/project/showfiles.php?group_id=89339

컴파일러의 개발 버전은 두 개가 있습니다: 2.2.x 버전은 단지 버그만 수정된 - 새로운 기능이 없는 안정 버전입니다. 2.3.x 버전은 버그를 포함하지만 새로운 기능이 많이 포함된 비안정 버전입니다. 2.2.0 버전은 버그가 있어 2.2.3 버전이나 2.3.1 버전을 컴파일 할 수 없으니 반드시 2.2.2 버전을 다운 받아서 설치하시기 바랍니다. 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. Keep in mind that these are daily snapshots and that you can have bad luck and get a buggy version. The probability is about 1:30. So if the version is buggy try another day or use the released packages instead.

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. A quite handy client, which integrates in Finder, is SCPlugin.

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 directory 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

Then start lazarus either via command line or by double click in the finder:

 ./lazarus.app/Contents/MacOS/lazarus

First Steps

The carbon interface is young and has some bugs. But gladfully if you know them you can work around them and get a productive IDE:

  • The carbon IDE looks somewhat nicer, although the autosizing does not work yet correctly and so some dialogs looks pretty bad until you enlarge them manually.
  • There is no optimal set of IDE shortcuts for the Mac yet, and so many features like help, identifier completion, toggle form/unit, compile, run, jump back do not work, because OS X itself uses those shortcuts. You must change the shortcuts in the editor options / keymappings. Beware, some key combos are not yet recognized and can give errors. At the moment it's recommended to only use Cmd-letter and Cmd-Shift-letter combinations.
  • The Alt key sometimes cease to functions. Just restart the IDE. It starts quite fast.
  • The blinking cursor vanish after popup menus and modal forms. Just switch to another page and back. Again: The normal page switching short cuts don't work, you may want to define some in the keymappings.

See Also