Getting Lazarus/ja

From Lazarus wiki
Jump to navigationJump to search

Deutsch (de) English (en) español (es) français (fr) 日本語 (ja) polski (pl) português (pt) русский (ru) slovenčina (sk)

メインページ - Lazarus Documentation日本語版 - 翻訳ノート - 日本語障害情報



いろいろなプラットホームのバイナリリリースが、SourceForgeのダウンロードエリアで配布されています。 Lazarus Sourceforge download area.


Lazarus for Windows の取得 - 上記の Sourceforge へのリンクから取得してください。

Lazarus for Ubuntu の取得

Lazarus for Fedora の取得

Lazarus for Suse の取得

Lazarus for Mandriva の取得

Lazarus for Mac の取得

SVN からの取得

TortoiseSVN クライアント

Windows なら TortoiseSVN クライアントが使えます。 からダウンロードして下さい。

こちら で、SVN からのソースのダウンロードやアップデートのやり方について紹介しています。Lazarus だけでなく、FPC についても同じやり方で SVN からソースを取得できます。

Other clients



sudo apt-get install subversion

Lazarus SVN 開発版の取得




 svn co lazarus



 svn update





svn co lazarus 

Lazarus svnリポジトリは[[fpsvnsync]を使って15分後にsourceforgeにミラーされています。sourceforgeリポジトリはhttpsプロトコルを使います。sourceforgeを使う場合、次のコマンドを使います。

svn co lazarus

FPCとLazarusのsvnリポジトリは、さらに へミラーされています。 からチェックアウトする場合は次のコマンドを使います。

svn co lazarus


ここにはsquidの例があります。クライアントにもproxyを使うように設定してください。(TortoiseSVNの場合は settings / networkを参照してください。)


Lazarus を自動的にダウンロード、ビルドする、Windows と Linux 用のスクリプト: Scripts for Lazarus

Lazarus のコンパイルとインストール

Installing Lazarus を参照してください - 詳しいインストールガイドです。または、 - さらに詳細なガイドです。

Using the command-line

Lazarus is shipped with Makefile for gnu make util. (Be warned, if you also have Codegear (or Borland) tools installed, it might conflict with gnu "make" util).

The tool allows you to compile the lazarus from command-line easily. You need to have fpc and fpc-packages installed and configured first.

To compile go to Lazarus directory in your terminal and type


This should rebuild LCL and Lazarus IDE (with basic packages installed).

Make targets

Following compiling targets can be specified for the make tool:

  • clean - the command will clean all compiled LCL and IDE units. Warning, this might make your project uncompilable (even though IDE still run, since binary is not deleted). For example: "make clean"
  • bigide - the command rebuilds LCL and IDE with additional packages. For example: "make bigide"
  • lcl - the command rebuild LCL only. IDE is left untouched. The command is very useful if you're making changes to LCL and need to test the changes on your project without breaking Lazarus. Rebuild LCL only is faster than rebuilding both LCL and IDE. For example: "make lcl"
  • components
  • packager/registration
  • ideintf
  • packager
  • bigidecomponents
  • ide
  • idepkg
  • idebig
  • bigide
  • starter - the command rebuilds startlazarus binary.
  • lazbuilder
  • tools
  • all
  • cleanide
  • purge
  • examples - the command rebuilds examples lazarus
  • install
  • lazbuild

If no target is specified LCL and IDE Lazarus (with basic set of components) is rebuilt.

Make parameters

There're also additional parameters, can be used for 'making' Lazarus.

  • OPT=%compiler_switches

the %compiler_switches is passed to each fpc call. The option is useful for specifying defines

For example:

 make bigide OPT="-dNoGdkPixBufLib -gw2" 

makes LCL and ide with NoGdkPixBufLib defined and dwarf2 debug info.

  • LCL_PLATFORM=%platform

%platform is the target Widgetset. It can be win32,gtk,gtk2,qt,carbon or cocoa.

For example:

 make LCL_PLATFORM=gtk2

Rebuilds LCL and IDE for gtk2 widgetset

  • FPC=%compiler_path

%compiler_path is the path to a custom compiler binary you want to build the target with.

Getting FPC SVN development version

Here are some hints how to get and install the development version of FPC (at the moment 2.5.1), which contains new features, bug fixes but is less stable and contains new bugs. The compiler is not included in the Lazarus SVN, but has its own FPC SVN. You must install first the latest released FPC. Download it from here and install, or see more details here: Installing the Free Pascal Compiler.

Then create a directory and download FPC from SVN:

mkdir -p ~/freepascal
cd ~/freepascal
svn co fpc

This will take some time.

You can also use TortoiseSVN client on Windows as explained earlier.

FPC のコンパイルとインストール

FPC のコンパイルとインストール方法はいくつかあります。

  • Use plain make.
  • Build a FPC package for your Linux distribution (.deb or .rpm file). The package allows to easily uninstall, upgrade and downgrade FPC and makes sure that all files are installed at the common places. So if something goes wrong, other users know how to help you.

In either case Lazarus must finally be configured for the new FPC.

Building and installing Free Pascal in UNIXe

The following instructions work in UNIX platforms, such as Linux, but also Mac OS X.

Building Free Pascal from source code can be useful in a number of situations. One example is when debugging a problem in the compiler, in the RTL or in the FCL. The distributed FPC installs come without debug info, but the install created from the makefiles constains debug info by default. Another use is testing the development version of the compiler, although often there are also snapshots available for that.

Step 1 - Make sure you have a compatible starting compiler installed.

Usually this will mean having installed the latest stable release.

Step 2 - Download the source of the new compiler

The first thing to do is downloading the Free Pascal source code for the version you desire to build. For example, to download the latest fixes 2.4 branch do:

svn checkout fpcfixes2_4

Step 3 - Build the compiler

Now enter the newly created directory and build and install Free Pascal:

 cd fpcfixes2_4
 make clean all install INSTALL_PREFIX=~

This will compile the compiler in 3 cycles, first using the already installed compiler and then using the newly compiled compiler.

It install all needed files in the specified directory. You can install to any other directory if needed. You just have to use the root account if the directory does not allow writing with your normal user account.

Step 4 - Update your fpc.cfg file

Then create a file


It is a hidden file (note the first dot). Enter the following contents to the file. If you installed to another directory, use that instead of your home dir.

 #include /etc/fpc.cfg

This allows installing any future fpc versions into PREFIX=~ without touching that config file.

To run fpc, ~/bin must be in PATH environment variable. Usually it is there by default. You also must add path ~/lib/fpc/2.5.1 to PATH because the actual compiler binary is located there. Most Linux systems now use bash shell and this configuration can be added to ~/.bashrc (a hidden file again) :

 export PATH=~/lib/fpc/2.5.1:$PATH

Note that path separator is ":" under Linux (";" under Windows). Now see "Configure Lazarus for the new fpc" below for the next step.

Build a debian/ubuntu package

Important: This script does not create the official debian/ubuntu packages. It creates a fpc package that contains the compiler and all packages.

To build the package you need to install some packages:

sudo apt-get install libgpmg1-dev fakeroot libncurses5-dev build-essential

Go into your lazarus source directory. The directory must be writable.

cd ~/freepascal/lazarus/tools/install
./ fpc ~/freepascal/fpc

If you get an error about a missing file or tool you may have to install a missing package. If you get a compilation error your installed fpc is not the released compiler or you were unlucky and fetched a fpc svn reversion that contains a bug. Search help on the mailing list, forum or chat. If it ran through you now have a deb file, which you can install:

 sudo dpkg -i fpc_2.5.1-091121_i386.deb

The file name is different for you.

Build a RPM package


Configure Lazarus for the new FPC

Now fpc is installed either by "make install" or by using a distro specific package. The next step is to compile lazarus svn with the new compiler and tell the IDE to use the directory /home/username/freepascal/fpc as FPC source directory.

If you have not yet downloaded the lazarus svn, do it now: Development versions from SVN. For example:

cd ~/freepascal
svn co lazarus

This will take some time, continue with:

cd ~/freepascal/lazarus
make clean all

If this gives linker errors, you have to install some packages (build-essential, libgtk2.0-dev,libgdk-pixbuf-dev). Start the IDE:

cd ~/freepascal/lazarus

This is a minimal IDE without any extra packages. Now the IDE must be setup and can be built with packages:

  • Go to Environment / Options / Environment
  • Set lazarus directory to /home/username/freepascal/lazarus
  • Set FPC source directory to /home/username/freepascal/fpc
  • Click Ok to close the dialog
  • Tools / Configure Build Lazarus / Quick Build Options / Build IDE with packages
  • Click Build.
  • Restart the IDE
  • Now you have the latest and greatest IDE built with the latest and greatest FPC.

Getting Lazarus from the GitLab server

Development version of Lazarus[edit] To get Lazarus for the first time, using command line:

git clone lazarus

A new directory "lazarus" is then created under the current directory.

Development versions from Mercurial

There is a Hg mirror of the official SubVersion repository being maintained on

This mirror does not exist any more. See the message from Florian Klämpfl.

Daily Snapshotの方法

もし、svnディレクトリを使いたくない場合、daily snapshotを使ってみてください。 Lazarus Snapshots Downloadsページに、ミラーのリストがあります。


SVNアーカイブの内容はWebブラウザから、 this viewcvs を通して見ることができます。

Lazarus ディストリビューション

LazarusとFree Pascalが含まれるいくつかの非公式なディストリビューションを見つけることができます。

  • オーストリア大学 応用科学部


Original contributors and changes

This page has been converted from the epikwiki version.