Installing Lazarus/de

From Lazarus wiki
Jump to navigationJump to search

Deutsch (de) English (en) español (es) suomi (fi) français (fr) magyar (hu) 日本語 (ja) 한국어 (ko) polski (pl) português (pt) русский (ru) slovenčina (sk) Tiếng Việt (vi) 中文(中国大陆)‎ (zh_CN)

Überblick

Für Menschen, die einfach Lazarus installieren wollen und es für die Programmierung nutzen möchten, ist die einfachste Methode eine neues, einigermaßen stabiles Release (wie ein Linux ".rpm" Package oder ein Windows ".exe" Package) downzuloaden und zu installieren. Sie können die Abschnitte über Linux oder Windows mit dem Titel "fpc binaries" oder die ersten Paragraphen in dem Abschnitt über die Installation von Lazarus unter Linux oder Windows lesen; die meisten der restlichen Informationen können sicher ignoriert werden.

Für jene, die sich an der Entwicklung des Compilers oder der IDE beteiligen wollen, oder für jene, die die meisten Werkzeuge up-to-date haben wollen, ist eine Installation aus den Quelldateien notwendig, und der Großteil dieser Informationen ist relevant.

Lazarus bietet zwei Hauptteile:

  • LCL - die Lazarus Component Library
  • IDE - das RAD Werkzeug

Diese wiederum sind abhängig von

  • FPC - dem FreePascal Compiler
  • FCL - der FreePascal Component Library, beinhaltend die meisten der nicht-graphischen Komponenten von Lazarus

Lazarus System Voraussetzungen

  1. FreePascal Compiler, Packages, und Quellen. (*wichtig*: von der selben Version/Datum)
  2. Ein unterstütztes Widget Toolkit
    Win32
    : Das native Win32 API kann benutzt werden
    Linux/xxxBSD
    GTK+ 1.2.x : Die meisten Linux Distributionen und *BSDs installieren ohnehin die GTK+ 1.2.x Bibliotheken. Sie können sie auch finden unter http://www.gtk.org.
    You'll also want gdk-pixbuf, 0.13 or newer (preferably 0.18 or newer), which is also found in most recent distributions aus den letzten 2 Jahren. Der Quellcode ist verfügbar von ftp://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/
    Mac OS X
    GTK+ 1.2.x : Sie benötigen die Apple Entwickler Tools, X11 und GTK1.2. Siehe unten: Installation unter Mac OS X.
    GTK+ 2.x
    WARNUNG : Die GTK2 Schnittstelle ist noch nicht komplett und ist nur für Testzwecke.
    It's found in most recent distributions. Für die Quellen siehe http://www.gtk.org.

Die FAQ - Frequently Asked Questions Datei ist verfügbar unter http://www.lazarus.freepascal.org . Einige der Fragen sind zu finden in der lokalen Datei 'FAQ'.

Die folgenden Abschnitte beschreiben, wie man FreePascal erhält und wie man Lazarus richtig installiert.

Installation des Free Pascal Compilers

Eine ausführliche Diskussion darüber, wie die Free Pascal Compiler zu installieren und erstellen sind, ist verfügbar hier http://www.stack.nl/~marcov/buildfaq.pdf - es mag ein bisschen zu detailiert sein für einige Benutzer, aber es ist sehr umfassend.

Lazarus benötigt FPC (FreePascal) Version 2.x.x, welche jetzt veröffentlicht wurde.

Installation von Free Pascal unter Linux

FPC Binärdateien

Die neueste Version von FreePascal, Version 2.0.2, kann von der FreePascal Webseite (http://www.freepascal.org/download.html, dann wählen sie einen Mirror-Server) bezogen werden.

Im Lazarus Download Abschnitt [1] können sie die RPM des Free Pascal Compiler (Compiler / Linux) und ihre Packages erhalten. Wenn sie keine RPM-basierte Distribution haben, können sie die tarballs von http://www.freepascal.org downloaden und installieren. Wenn sie die Binärdateien selbst kompilieren wollen, schauen sie im BSD Abschnitt nach.

Instruktionen:

Downloaden sie die neuesten Dateien von [2]. Zum Beispiel:

  • fpc-1.9.8-0.i586.rpm
  • fpcsrc-1.9.8-050225.i386.rpm
  • lazarus-0.9.6-fpc_1.9.8_0.i386.rpm

und installieren mit:

  • rpm -Uvh fpc-1.9.8-0.i586.rpm
  • rpm -Uvh fpcsrc-1.9.8-05.225.i386.rpm
  • rpm -Uvh lazarus-0.9.6-fpc_1.9.9_0.i386.rpm

Tägliche snapshot Debian Packages können von http://cYcnus.de/deb/ downgeloaded werden. Gegenwärtig enthalten sie nur die kompilierten FPC Komponenten, aber nicht die Quellen, welche für den Großteil der Lazarus Programmierung benötigt werden.

FPC Quellen

Zusammen mit dem Release von Version 2.0, benutzt FPC nicht länger CVS, denn es ist zu Subversion (SVN) migriert. Fürs erste gibt es keinen CVS Mirror mehr, daher müssen sie SVN benutzen, um die FPC Quellen zu bekommen.

Download Daily Source Snapshot of Development Tree (version 2.1.x)

You can download today's development (v 2.1.x) sources in the form of a packed snapshot from the SVN source repository: these snapshots are updated on a daily basis, and reflect the state of the source repository. The files are kept at the site which has the SVN archive. Entire public sources archive of v2.1.x: fpc.zip (24 MB)

Download Daily Source Snapshot of Release Tree (version 2.0.x)

You can download today's development (v 2.0.x) sources that will lead to the next stable release in form of a packed snapshot from the SVN source repository: these snapshots are updated on a daily basis, and reflect the state of the source repository. The files are kept at the site which has the SVN archive. Entire public sources archive of v2.0.x: fpc.zip (24 MB)


Verbinden mit dem Source Repository mit SVN (ersetzt den Abschnitt mit CVS)

Als eine Alternative zu den täglichen Zip Dateien der SVN Quellen, wurde das SVN Repository für jeden zugänglich gemacht, mit Nur-Lese-Zugriff. Das bedeutet, daß sie den Code direkt abrufen können, und sie werden wirklich die last-minute Quellen verfügbar haben. Es ist auch eine Methode, welche eine geringere Bandbreite erfordert, sobald sie den ersten Download erledigt haben (checkout in der SVN Sprache).

Entwicklungs snapshots

Wie macht man das? (Sie müssen natürlich SVN installiert haben. Schauen sie hier für Instruktionen, wie man das tut.)

Wechseln sie (Befehl cd) zum übergeordneten Verzeichnis ihrer Entwicklungsumgebung, z.B.

[]$ cd /home/username/FreePascal

Um das vollständige Quellen Lager (repository) abzurufen, alle öffentlich verfügbaren Module, tippen sie

[]$ svn checkout http://svn.freepascal.org/svn/fpc/trunk fpc

Normalerweise sollten sie diesen Schritt nur einmal ausführen (müssen).

Um die downgeloadeten Quellen (checkout) upzudaten genügt

[]$svn update fpc
Fixes to 2.0.x

Die Fixes benötigen ein separates Verzeichnis, erstellen sie ein separates Verzeichnis 'fixes', gehen hinein, und wiederholen das obrige checkout Kommando mit der URL http://svn.freepascal.org/svn/fpc/branches/fixes_2_0:

[]$ cd mysvn/fixes
[]$ svn checkout http://svn.freepascal.org/svn/fpc/branches/fixes_2_0 fpc

und zum updaten:

[]$ svn update fpc

Die Quellen der Dokumente sind in einem separaten repository mit Namen fpcdocs. Das Kommando um sie zu erhalten lautet

[]$ svn checkout http://svn.freepascal.org/svn/fpcdocs/trunk fpcdocs

Wenn sie mehr über subversion lernen wollen, dann lesen sie dieses exzellente Subversion Buch welches auch online verfügbar ist in verschiedenen Formaten (kostenlos).

Für die Neugierigen: Sie haben nur Lesezugriff, versuchen sie nicht, etwas einzustellen :-)

Für mehr Informationen schauen sie auf der FreePascal Webseite nach.

<<< NEXT SECTION IS NOW OBSOLETE - RETAINED TEMPORARILY FOR REFERENCE >>>

The easiest way to get the freepascal sources is via cvs. You can also download it as whole; see http://www.freepascal.org/develop.html for the daily snapshot of the 1.9.x release tree.

Getting Last FPC Sources via CVS

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. /home/username/freepascal) then do the following:

[]$ bash
[]$ export CVSROOT=:pserver:cvs@cvs.freepascal.org:/FPC/CVS
[]$ cvs login   // password is 'cvs' without the commas.
[]$ cvs -z3 co 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 /home/username/freepascal/fpc
[]$ cvs -z3 update -dP
<<< END OF OBSOLETE SECTION >>>

Installation von Free Pascal unter Windows

FPC Binärdateien für Windows

Bei weitem der einfachste Weg, eine funktionierende Installation von Free Pascal zu erhalten, ist die gegenwärtige binäre Windows Version von Lazarus vom SourceForge repository downzuloaden - das release enthält die aktuellen Versionen des FreePascal Compilers und die FreePascal Bibliotheken ebenso wie die Lazarus IDE. Wenn sie von den Quellen installieren wollen, dann lesen sie weiter!

Sie können die Installations Zip-Datei für FPC 2.0.0 im Free Pascal Download Bereich http://www.freepascal.org/download.html, dann wählen sie einen Mirror-Server) erhalten. Installation von den Quellen -- entnehmen sie dem nächsten Abschnitt, wie man sie erhält -- ist nicht für Anfänger, weil sie einen laufenden Compiler benötigen.

FPC Quellen für Windows

<<<< Sehen sie den Abschnitt oberhalb an unter FPC Quellen für Linux, wo die Benutzung von SVN beschrieben ist. >>>>

Der einfachste Weg um die Free Pascal Quellen zu bekommen ist via SVN. Der nächste Abschnitt beschreibt den (inzwischen veralteten) Weg über CVS. Sie können auch das Package als ganzes downloaden -- schauen sie unter http://www.freepascal.org/develop.html nach dem täglichen snapshot des 2.1.x Versions Baums.

Windows FPC Quellen via CVS

You will need to have a CVS client such as TortoiseCVS or WinCVS installed in order to perform the steps below. The exact commands vary between CVS clients; the ones given below are to be used under CVS home's client, which is available for download here.

First create a directory in which you'd like to put the sources. Any normal user can do this. Create a directory for fpc (e.g. C:\Source), then do the following at the command prompt:

 C:\Source> set CVSROOT=:pserver:cvs@cvs.freepascal.org:/FPC/CVS
 C:\Source> cvs login      // password is 'cvs' without the commas
 C:\source> cvs -z3 co fpc // This will create a directory fpc, which can be later used in the IDE.

Hint: To download/update the latest changes you can simply do

 C:\> cd Source\FPC
 C:\Source\FPC> cvs -z3 update -dP

ToDo: Write me.

See: http://www.freepascal.org/down-win32.html . You can find a list of mirrors at http://www.freepascal.org/sdown.html. Download FPC as one big file, unzip it and run the install.exe.

Extending your PATH variable to the fpc directory:

  • Win98: Edit autoexec.bat and add the line: PATH=%PATH%;C:\pp\bin\bin\win32
  • WinXP/2k: My Computer (Right Click) -> Properties -> Advanced (Page) -> Enviroment Variables -> System Variables -> Edit "PATH", Add "C:\pp\bin\bin\win32" there.

Then restart windows.

ToDo: Explain how to download fpc sources and build the compiler

Installation von Free Pascal unter BSD/manuell

Tatsächlich benötigen sie

Eine Datei mit allen Quellen, oder zwei (FPC und Lazarus)

1. e.g. for fpc ftp://ftp.freepascal.org/fpc/dist/Linux/separate/sources.tar preferably an export (no CVS/ dirs). The above file misses this. 2. Lazarus source snapshot.

  • _any_ starting compiler from the 1.9 branch) You can do a check by parsing the output of ppc386 -i if it is 1.9.3 .. 2.0.x it is ok.
  • - dependant packages. (for FreeBSD that is gtk12, glib12 and gdk_pixbuf and GNU make, iconv and gettext)

FPC build:

1. (fetch) necessary files (FPC source, starting compiler) 2. (extract) Then de-tgz in work directory, 3. (build) enter work/fpc/ and run

 $MAKE all OPT='-gl -O3p3'  PP=/path/to/startingcompiler-name-ppc386
(/path/to/ can be omitted when ppc386 is in the path)
($MAKE is make on linux and gmake on BSD)

4. (install) then, again in work/fpc, run

$MAKE install PP=compiler/ppc386 PREFIX=$THEPREFIX
(THEPREFIX= usually is /usr/lcoal, but e.g. on NetBSD it is /usr/pkg for ports)
Create a symlink:
  ln -s $THEPREFIX/lib/fpc/1.0.8/ppc386 $THEPREFIX/bin/ppc386
     install sourceinstall PREFIX=$THEPREFIX

5. (configure) run compiler/utils/samplecfg $THEPREFIX/lib/fpc/1.9.3 $ETCDIR 6. (optional, test), see if ppc386 -i gives output, else give a warning that user need to add $PREFIX/bin to his current path. Try to compiler a program with -viwn, and see if that gives errors. Notes:

  • If you need fpcmake package lists, you need to generate or supply them yourself, (in the port, or in an extra archive) either way, do a dummy install to /tmp/pack and determine the files installed with find . >ll
  • $THEPREFIX and $ETCDIR should be user configurable. Otherwise local installs aren't possible.
  • BSDHIER=1 on all make commands forces BSD hierarchy conventions.

Installation von Free Pascal unter Mac OS X

Sie benötigen die Apple Developer-Tools, X11, gtk1.2:

Der Download von Packages und ihre richtige Installation kann eine zeitraubende Aufgabe sein. Daher gibt es verschiedene Paketmanager. Einer von ihnen ist fink:

Downloaden sie fink von http://fink.sourceforge.net/download/index.php?phpLang=en; folgen sie den Installationsanweisungen.

Entwickler-Werkzeuge: Are included on the original OSX installation-CDs, or download at ADC (free registration required)

http://developer.apple.com/.

Apple X11: Auf einem frischen System: wählen sie "Customize" in dem Installationsdialog, setzen den Haken "X11".

On an already installed system: download at

http://www.apple.com/downloads/macosx/apple/x11formacosx.html

In the Terminal, run

       sudo fink install gdk-pixbuf gtk+ gtk+-data gtk+-shlibs gtk-doc gtkglarea gtk-engines

The X11-Application is in /Applications/Utilities/X11.

Hinweis: Most X11 programs, including lazarus expect to receive focus, when the users clicks on a window. Under MacOSX this is deactivated. You can activate it for all X11 applications by typing in the terminal:

       defaults write com.apple.x11 wm_click_through -bool true
Free Pascal Compiler

Dann downloaden und installieren sie den Free Pascal Compiler (zuletzt 2.0.0 vom ...) von

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

When compiling gtk-related software, you need to add two lines to the fpc.cfg file, to enable use of libraries

-Fl/sw/lib
-Fl/usr/X11R6/lib


Für Lazarus benötigen sie die FPC Quellen ebenfalls: Erstellen sie ein Verzeichnis, in das sie die Quellen ablegen wollen. Sie müssen nicht root sein um dies zu tun. Jeder normale Benutzer kann es tun. Zuerst erstellen sie ein Verzeichnis für FPC

(z.B. /Users/username/freepascal)

dann öffnen sie ein Terminal und tun das Folgende:

[]$ bash
[]$ export CVSROOT=:pserver:cvs@cvs.freepascal.org:/FPC/CVS
[]$ cvs login

Passwort ist 'cvs' ohne die 'Anführungszeichen'

[]$ cvs -z3 co 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
[]$ cvs -z3 update -dP

Installation von Lazarus

Installation von Lazarus unter Linux

Installation unter Verwendung von rpms

Der einfachste Weg, um eine aktuelle funktionierende Installation von Lazarus zu erhalten, ist die RPMs für FreePascal und Lazarus vom SourceForge repository downzuloaden.

Sie müssen die gewählte Version downloaden von

  • dem Compiler (z.B. fpc-1.9.5-041207.i386.rpm)
  • der Pascal Quell Bibliothek (z.B. fpcsrc-1.9.5-041207.i386.rpm)
  • dem Lazarus Package (z.B. lazarus-0.9.2.4-fpc_1.9.5_041207.i386.rpm).

Dann geben sie die folgenen Kommandos ein (sie müssen root Privilegien haben - benutzen sie su oder sudo)

rpm -Uvh fpc-1.9.5-041207.i386.rpm
rpm -Uvh fpcsrc-1.9.5-041207.i386.rpm
rpm -Uvh lazarus-0.9.2.4-fpc_1.9.5_041207.i386.rpm

Installation von den Quellen

Wenn sie die Installation von den Quellen bevorzugen und die Dateien selbst kompilieren, dann folgen sie diesen Instruktionen. Weil der ganze Lazarus Stoff in ein Verzeichnis installiert ist, ist die Deinstallierung sehr einfach und sie müssen kein root sein, um Lazarus zu installieren. Sie können die tgz Dateien für fpc, fpcsrc und Lazarus vom Download Bereich erhalten oder sie können sie direkt via SVN downloaden.


<<< THIS SECTION IS NOW OBSOLETE BUT IS RETAINED FOR REFERENCE >>> ;Downloading lazarus cvs: cvs provides an easy way to update your sources by only downloading the changes. This is the recommended way and saves you a lot of time. A connection to the internet is needed for this: you don't need to be root. Lazarus does not need any special permissions, neither during installation nor at runtime. First create a directory for lazarus (e.g. /home/username/freepascal) then do the following:

;connect to the cvs server (note: lazarus and freepascal use the same server) []$ export CVSROOT=:pserver:cvs@cvs.freepascal.org:/FPC/CVS []$ cvs login password is 'cvs' without the .

;download the lazarus sources: []$ cvs -z3 co lazarus <<< END OF OBSOLETE SECTION >>>

Download Lazarus SVN

Das Lazarus Repository ist von CVS zu SVN (Subversion) umgezogen. SVN bietet einen einfachen Weg, um ihre Quellen zu updaten, indem sie nur die Änderungen downloaden. Dies ist der empfohlene Weg und spart ihnen eine Menge Zeit. Eine Verbindung ins Internet wird dafür benötigt: sie müssen aber nicht root sein. Lazarus benötigt keine speziellen Genehmigungen, weder während der Installation noch zur Laufzeit.

Mit dem Umzug haben wir auch das Verzeichnis Layout der Lazarus Quellen geändert. Der hauptsächliche Unterschied ist, daß alle IDE Quellen vom root- in ein separates IDE Unterverzeichnis umgezogen ist. Wie jeder verstehen kann, hat dies einen Einfluss auf die Make-Dateien, die Suchpfade etc. Wir sind dabei, Dinge zu fixen, falls daher etwas nicht läuft, lassen sie es uns bitte wissen.

Jetzt die wichtigste Sache.... Erhalten der Quellen
 []$ svn checkout http://svn.freepascal.org/svn/lazarus/trunk/ lazarus

(oder jedes andere Verzeichnis, wo sie ihre Quellen haben wollen)

Bei der nächsten Gelegenheit tippen sie um upzudaten einfach

 []$ svn update lazarus

Für mehr Informationen über Subversion siehe: http://subversion.tigris.org/

Beachten sie: Das CVS ist noch erreichbar, aber wurde eingefroren. Das bedeutet, daß keine neuen Updates mehr veröffentlicht werden.

Wenn sie sich von CVS oder SVN abgemeldet haben (checkout), ist der nächste Schritt:

Kompilieren von Lazarus:

[]$ cd lazarus
[]$ make  (gmake bei BSD)


Wenn FPC korrekt installiert ist, sollte die Kompilierung ohne Probleme arbeiten. Wenn nicht, dann schauen sie in den FAQ nach.

Start lazarus
[]$ ./lazarus

Die IDE sollte starten. Wenn sie Lazarus in einem Terminal gestartet haben, können sie einige Mitteilungen über fehlende Einstellungen sehen. Das ist normal beim ersten Start. Die IDE versucht automatisch herauszufinden, wo der Freepascal Compiler und seine Quellen installiert sind, indem sie in den gebräuchlichsten Verzeichnissen sucht.

Prüfen sie die Pfade
Benutzen sie das IDE Menü um zu ... zu gelangen
Einstellungen -> Umgebungseinstellungen -> Dateien

Das 'FPC Quelltextverzeichnis' sollte auf ihr FPC Quelltextverzeichnis zeigen. Dieses Verzeichnis endet normalerweise mit /fpc/ oder /fpcsrc/ (z.B. /usr/src/fpcsrc oder /home/username/freepascal/fpc) und enthält Verzeichnisse wie 'compiler', 'docs', 'fcl', 'rtl' und 'packages'.

ToDo: die anderen Pfade erläutern

Hinweis

Um Lazarus upzudaten können sie folgendes benutzen

[]$ cd /home/username/freepascal/lazarus
[]$ cvs -z3 update -dP

ODER (für Subversion)

[]$ svn update lazarus

dann für den either Update Pfad:

[]$ make clean all   (gmake on BSD)

This will rebuild lazarus und eine IDE ohne Lazarus Packages erstellen. To link your installed packages do after the above:

[]$ make idepkg

Installation von Lazarus unter Debian GNU/Linux

Es sind vorläufige Debian Packages für Lazarus zum Download verfügbar. Lesen sie /usr/share/doc/lazarus/README.Debian sorgfältig bevor sie mit der Benutzung beginnen. Feedback wird benötigt und ist geschätzt. Bitte senden sie ihre Kommentare an Carlos Laviola <claviola@debian.org>.

Ein anderer (einfacherer?) Weg um Lazarus unter Debian zu installieren

Hinzugefügt von User:Kirkpatc.

Einfache Lazarus Installation in Debian

(eine neue Debian Installation vorausgesetzt, ohne geladene Entwicklings Bibliotheken)

From sourceforge repository, download latest fpc, fpclib and lazarus releases; follow links from http://lazarus.freepascal.org, click the "downloads" button on the left, then click on "binaries" then "linux" then "Current Lazarus RPM". This will bring you to

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

then download the following files (or more recent, if available)

  • fpc-1.9.5-041001.i386.rpm
  • fpcsrc-1.9.5-041001.i386.rpm
  • lazarus-0.9.2.2-fpc_1.9.5_041001.i386.rpm

cd to the directory where these files are stored, then become root (su) and type:

alien fpc*     //this will convert both the fpc and fpcsrc files to debian format
alien laz*

then use kpackage or a similar utility to install the fpc, fpcsrc and lazarus **.rpm.deb files.

You need to produce a configuration file, which will reside in /etc/fpc.cfg. Still as root, cd to the main fpc directory /usr/lib/fpc/1.9.5 and then type

sh ./samplecfg /usr/lib/fpc/1.9.5 /etc

Check the contents of your new configuration file (cat /etc/fpc.cfg) and make any changes you want using vi or another text editor.

You need to install the development packages of the GTK and pixbuf libraries, so

apt-get install libgtk2.0-dev
apt-get install libgdk-pixbuf-dev

Then you should be ready to start programming!

Installation von Lazarus unter Mac OS X

Arbeitet ziemlich gleich wie unter Linux. Aber sie müssen zuerst die Apple Entwicklerwerkzeuge und X11 installieren.

Snapshots sind verfügbar unter http://www.de.freepascal.org/lazarus/.

If you install all 3 .dmg snapshot files, this also installs the FPC compiler and the FPC and Lazarus source too. If you only need to run Lazarus to develop and compile your own apps, you don't need to install the FPC and Lazarus sources as described above. If you need to rebuild Lazarus or want to help with its development, then you should to install the Lazarus source to a folder where you have read-write permission, as described above.

If you want to experiment and develop the Carbon widgetset interface, look at Installing Carbon on OSX.

Es gibt zumindest 2 Möglichkeiten, um Lazarus unter OS X zu starten:

Start X11. In the terminal window, type:

cd /usr/local/share/lazarus
./lazarus

You can also run Lazarus from the X11 menu. Choose Applications | Customize, click Add Item, then under Name enter Lazarus and under Command enter:

open -a /usr/local/share/lazarus/lazarus

Click Done. Now you can start Lazarus by choosing Applications | Lazarus.

Installation von Lazarus unter Windows

Die gegenwärtigen Versionen der Windows Lazarus binären Packages sind sehr einfach zu installieren und sollten 'out-of-the-box' arbeiten.

Es ist sogar möglich, das ganze Lazarus/FPC Package auf einem tragbaren USB Laufwerk (Kapazität mindestens 256 MB) zu installieren, für die Benutzung in Umgebungen, wo es nicht erlaubt ist, Software auf ihrer Windows Workstation zu installieren oder wo sie keine Administator Rechte erhalten haben. Sie müssen etwas vorsichtig sein mit der Einstellung der Pfade in den Compiler und Umgebungs Optionen und der fpc.cfg Datei. Es mag auch notwendig sein, das Verzeichnis für Testkompilierungen auf ihrem tragbaren Laufwerk zu belassen. << DOES ANYONE KNOW HOW TO SET UP RELATIVE PATHS IN THESE TAGS AND FILES, SO THAT THE ADDRESSING WORKS WHEN YOU MOVE THE USB DEVICE TO ANOTHER MACHINE WHERE IT HAS A DIFFERENT DRIVE LETTER? >>

Das binäre Package ist verfügbar für Linux und Windows von

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

Downloaden sie die neueste Version (gegenwärtig Lazarus-0.9.9-20050902-win32.exe) und starten sie die Anwendung. Sie werden durch eine typische Windows Installation geführt, in welcher der FPC Compiler und die Quellen Bibliotheken in der selben Verzeichnisstruktur wie Lazarus installiert werden, und die IDE sollte ohne signifikante Probleme starten und arbeiten, vorausgesetzt sie haben jede frühere Version von Lazarus und/oder FPC deinstalliert (oft zu finden im C:\pp Verzeichnis).

Sie können ein Lazarus Snapshot für Windows auch bekommen unter: http://www.de.freepascal.org/lazarus/

Installation von den Quellen

Wenn sie die Installation aus den Quellen bevorzugen, dann folgen sie diesen Instruktionen (Dank an Joe für die anfängliche Schritt-für-Schritt Beschreibung)

Sie müssen die Lazarus Quellen downloaden von:

http://www.de.freepascal.org/lazarus/

Dann entzippen sie diese zum Beispiel nach c:\lazarus . You have to install at least fpc-2.0.0, but a fpc-2.0.1 or fpc 2.1.1 snapshot is also possible. It compiles for me, and lazarus.exe works. The path to my fpc is: c:\pp\bin\win32. In this directory you can find a lot of exe (make, grep, ppc386, and so on).

Öfnnen sie eine Kommandozeile. Start->Ausführen...>command oder wählen sie das MS-DOS Icon.

Tippen sie:

cd c:\lazarus
set path=c:\pp\bin\win32;c:\lazarus  //of course change the first to
                                     //the path of yours
windres -i lazarus.rc -o lazarus.res
make

Wenn sie Glück haben dann können sie: lazarus.exe eintippen. Der Quelltexteditor, Dialoge und der Eigenschafts Editor arbeiten, aber nicht perfekt... Schauen sie und sie werden sehen.

Sie können examples auch so kompilieren:

cd examples
make

Wenn sie Lazarus auf einem anderen Laufwerk extrahiert haben, z.B.: d:\lazarus, kann es passieren, daß sie das gnu Utility für 'make'. Wenn sie es haben, können sie seinen Pfad nehmen um den path=...;<gmakepath> zu setzen aber es ist einfacher, nicht das Laufwerk d:\ zu wählen.

Das ist alles.

Zusätzliche Erfahrungen und Ratschläge über die Installation von FPC und Lazarus

On linux, getting Lazarus to work can be complicated. If you have already installed earlier versions of FPC and/or Lazarus, you have to take great care that the PATHS are adjusted so that only your new versions are called.

Fallen, die ich herausgefunden habe in verschiedenen Versuchen mit SuSE Linux enthalten:

Die rpm Versionen installieren oftmals FPC in /bin oder /usr/bin, mit den Bibliotheken in /lib oder /usr/lib.

Wenn sie ein make install ausführen bei einer Quellen Version oder ein .tar.gz benutzen, wird der Compiler üblicherweise in /usr/local/bin mit den Bibliotheken in /usr/local/lib installiert.

So if earlier versions have been installed from rpm, make sure all links are changed to reflect the directory structure of your new compiler. The place to make the changes is in /etc/fpc.cfg ; make sure there are no remnant configuration files in your home directory or in your FPC download directory. Typically they are found in ~/.fpc.cfg

Make sure the links in /etc/fpc.cfg point to the correct versions of the libraries (particularly if you have older versions still lurking around).

In /usr/local/bin or /usr/bin there is a file called fpc ; this is the executable that is called when you invoke the compiler. One of the first things it does is to open ppc386 in the same directory. This has to be the same version as the fpc file, or can be a link pointing to the true ppc386 in some other directory (such as a library directory, or the fpc directory in your own development space); be sure to update your link if you install a newer version of the compiler.

Try running the compiler from the command line using one of the simple example programs or one which you wrote yourself.

Turning to Lazarus:

If you use a downloaded snapshot (.tar.gz) or get the source from CVS, enter your lazarus directory and type

make
./lazarus 

and hopefully the IDE should load. There may be a message saying it can't find the sources; if so, go to the menu at the top and select Environment -> Environment options and insert the name of the directory where you expect to find your lazarus files (eg ~/FreePascal/lazarus), your compiler (eg /usr/local/bin/ppc386), the FreePascal source directory (eg /usr/local/lib/fpc/$version/fpc or a directory in your own space eg ~/FreePascal/fpc). Then close the dialog and start programming.

You may find further problems when you start programming or compiling; most of these will be related to PATH selection.

Many of the difficulties are dealt with in the Lazarus FAQ, found either on this WiKi site, or a more complete list on the main Lazarus site

http://www.lazarus.freepascal.org/modules.php?op=modload&name=FAQ&file=index

From the top menu select Run -> Compiler Options (or Project -> Compiler Options in more recent releases of Lazarus) and select the Paths tab on the resulting dialog. There are several boxes for entry of paths for Unit files, Include files, Other source files, Libraries etc. For each of these, it is worth pressing the ... (ellipsis) button on the right, and you will be given a blank window for inserting path information, and a lower window giving some suggestions. Select as many as you like (or ALL!) and press the ADD button to transfer the selections to the upper window. When your selection is complete, press OK and move on to the next box. If you know of other paths which need to be followed, press the Browse button associated with each box, and insert the additional paths.

When you think you have got your paths right, try to compile your application. If there are further path-related errors ('can't find unit .......') then go back and check your paths, both in /etc/fpc.cfg and in your Run -> Compiler Options dialog (or Project -> Compiler Options depending on your version).

Once you have got the environment and PATHS correct, it is worth saving the settings to a file, otherwise you will have to go through this process for each new project. In the Run -> Compiler options dialog there is a Load/Save button; select this and then save the setings to the filename of your choice: mine is ~/FreePascal/default.cfg. Then each time I start a new project, I can go to the Run -> Compiler Options dialog (or Project -> Compiler Options), select Load/Save, and load my default.cfg file to the new project. You can, of course, modify the options for each new project if you so desire.

Installation von Lazarus unter BSD

FreeBSD 4.10+

Wie der Text oberhalb sagt, müssen sie GTK+ 1.2 installiert haben. Bei mir war das nicht der Fall, daher installierte ich zuerst als root:

> pkg_add -r gtk
> pkg_add -r gdk-pixbuf
> cd /path-to-lazarus
> gmake
> ./startlazarus

Wenn sie Meldungen über fehlende Quelldateien erhalten, gehen sie zu [menu bar >> Environment >> Environment Options >> Files Tab: FPC source library] und geben das Verzeichnis der FPC Quelldateien ein. Ich holte sie von SVN wie oben beschrieben.

Viel Glück, bei mir funktionierte es. --Jrmarino 21:29, 4 Jan 2006 (CET)

Dies funktioniert auch bei 6.0 . Aber es gibt auch 2 mögliche Probleme.

1. After start, lazarus source editor seemed to have some broken font. This is due to missing courier. Fix is simple, go to editor options and chose another font (clean works for me).

2. Unlike on Linux you MUST specify path to GMAKE (not make) in environment options if you wish to use packages and lazarus self-build features.

PC-BSD 1.0rc1+

Sie können Lazarus installieren unter PB-BSD einfach durch Downloaden des Lazarus PBI von PBI Dir

Beachten sie, daß sie den glib* port installieren müssen von /usr/port/devel/glib* oder die glib Packages durch pkg_add -r glib12 glib20. Ich werde dies bereinigen in neuen PBI Releases.

[other OpenBSD/NetBSD/DragonFlyBSD goes here]

Mitwirkende und Änderungen

Diese Seite wurde von der epikwiki Version konvertiert.

  • Initially imported and formatted. VlxAdmin 9/22/2003
  • Changed Joe's part for Windows to require fpc 1.0.10. Vincent 9/25/2003
  • Updated "What is required for lazarus". AndrewJohnson 10/1/2003
  • Finished formatted the InstallingLazarus page VlxAdmin 2/22/2004
  • Posted some notes about Installing FPC and Lazarus: mostly reflecting experiences in trying to get the PATHS right in Linux. 3/11/2004 User:Kirkpatc
  • Copied the contents of my note into the main InstallingLazarus section, edited it slightly. I don't know how to remove the original note. 3/12/2004 User:Kirkpatc
  • Removed the original note. Tidied the wiki and formatting a bit. VlxAdmin
  • Corrected a couple of typos - 3/12/2004 User:Kirkpatc
  • Added link for daily snapshot deb packages - 3/27/2004 Vincent
  • Fixed links in GettingLazarus (downloading binaries) and several other pages. 22 July 2004 User:Kirkpatc
  • Added link for lazarus deb packages - 19 August 2004 VincentSnijders
  • Added a short note on installing in Debian - 23 Nov 2004 User:Kirkpatc
  • Considerable re-write and re-organization of installation section - 11 Dec 2004 User:Kirkpatc