Installing Lazarus/pt

From Free Pascal 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)

Visão Geral

Para pessoas que simplesmente querem instalar Lazarus e começar a usá-lo para programar, a maneira mais fácil é instalar uma versão recente, razoavelmente estável, de um binário (como um pacote linux ". rpm" ou um Windows ". exe"). Você pode ler as seções abaixo de linux ou Windows intitulado "binários de fpc" ou os primeiros parágrafos nas seções em instalar Lazarus em linux ou Windows; a maioria da informação restantes podem ser ignoradas seguramente.

Para os que querem participar no desenvolvimento do compilador ou da IDE, ou para quem quer ter as ferramentas com atualizações em dia, uma instalação de arquivos de fonte é necessária, e muito do resto desta informação é pertinente. Lazarus provê duas partes principais:


Lazarus provê duas partes principais:

  • LCL - Biblioteca de Componentes do Lazarus ( Lazarus Component Library )
  • IDE - ferramenta de RAD

Estes são em troca dependentes de

  • FPC - o compilador de freePascal ( freePascal compiler )
  • FCL - a Biblioteca de Componentes FreePascal Componente biblioteca (FreePascal Component Library ), contendo a maioria dos componentes de não-gráficos usado pelo Lazarus.

Requisitos de Sistema do Lazarus

  1. Compilador de FreePascal, pacotes (packages), e fontes ( sources). (*important*: of the same version/date)
  2. Uma Widget tool-kit de suporte
    Win32
    : API nativas do Win32 podem ser usadas
    Linux/xxxBSD
    GTK+ 1.2.x : A maioria distribuições de Linux e * BSDs já instalam bibliotecas GTK+ 1.2.x. Você também pode achar em http://www.gtk.org.
    Você também desejará ter gdk-pixbuf, 0.13 ou mais novo ( preferencialmente 0.18 ou mais recente), que também é achado na maioria das recentes distribuições dos últimos 2 anos. A fonte está disponível em ftp://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/
    Mac OS X
    GTK+ 1.2.x : Você precisa das ferramentas de desenvolvedor da apple, X11 e GTK1.2. Veja abaixo como instalar o Lazarus no Mac OS X.
    GTK+ 2.x
    ADVERTÊNCIA : A interface interativa GTK2 não está totalmente implementada é só deve ser usada para testes.
    É encontrada na maioria das distribuições recentes. Peque a fonte em http://www.gtk.org.


As FAQ, perguntas mais frequentes, podem ser encontradas em http://www.lazarus.freepascal.org . Algumas respostas podem ser encontradas no arquivo local 'FAQ'.


As seções seguintes descreverão como adquirir FreePascal e como instalar Lazarus corretamente.

Instalando o Compilador Free Pascal

Há uma extensa discussão de como instalar e criar os compiladores Free Pascal disponíveis aqui http://www.stack.nl/~marcov/buildfaq.pdf - ele pode ser pouco detalhado para alguns usuários, mas ele é muito compreensível.

Lazarus requer fpc (FreePascal) versão 1.9.x e ele requer ambas as bibliotecas fpc compiladas (binárias) e os fontes fpc da mesma versão. fpc 1.0.6 é muito bugado e fpc 1.0.10 tem problemas abrindo formulários criados com fpc 1.9.x. FreePascal versão 2.0.0 foi agora lançada, e é o compilador preferido (fpc-2.0.0).

Instalando Free Pascal sob o Linux

Binários FPC

O ultimo lançamento do FreePascal, versão 2.0.1, pode ser obtido do website FreePascal (http://www.freepascal.org/download.html, então escolha um mirror) ou do sourceforge (http://sourceforge.net/projects/lazarus).

Na seção de downloads do Lazarus (http://www.lazarus.freepascal.org ) você pode pegar os RPM do Free Pascal Compiler (compiler / linux) e seus pacotes. Se você não tem uma distribuição baseada em pacotes, você pode baixar e instalar tarball do http://www.freepascal.org. Se você deseja compilar os binários você mesmo, veja a seção BSD.

Instruções:

Baixe os últimos arquivos de http://sourceforge.net/project/showfiles.php?group_ide=89339. Um exemplo:

  • fpc-2.0.1-050923.i386.rpm
  • fpcsrc-2.0.1-050923.i386.rpm
  • lazarus-0.9.10-0.i386.rpm

e instale-o com:

  • rpm -Uvh fpc-2.0.1-050923.i386.rpm
  • rpm -Uvh fpcsrc-2.0.1-050923.i386.rpm
  • rpm -Uvh lazarus-0.9.10-0.i386.rpm

Pacotes Debian em Snapshost diários podem ser baixados de http://cYcnus.de/deb/. No momento presente este contém somente os componentes fpc compilados, mas não os fontes, o qual é necessário para a maior parte da programação Lazarus.

Fontes FPC

Juntamente com o lançamento da versão 2.0, FPC não utiliza mais CVS, tendo migrado para o Subversion (SVN). Por enquanto, ainda não existe um espelho CVS, então você deve utilizar SVN para conseguir os fontes FPC.

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)


Connect to Source Repository with SVN (replaces section on connection to CVS)

As an alternative to the daily zip files of the SVN sources, the SVN repository has been made accessible for everyone, with read-only access. This means that you can directly access the code, and you will have really the last-minute sources available. It is also a method which requires less bandwidth once you have done the first download (checkout in SVN lingo).

Development snapshots

How to do this? (You need to have SVN installed, of course. Look here for instructions on how to do that.)

Change Directory (cd) to the parent directory of your development area, eg

[]$ cd /home/username/FreePascal

To retrieve the full source repository, all publicly available modules, type

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

Normally, you should perform this step just once.

To update the sources which were downloaded (checkout) above

[]$svn update fpc


Fixes to 2.0.x

Os fixes necessitam um diretório separado, crie um diretório separado 'fixes', entre nele, e repita o seguinte comando checkout com a 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

e para alterar:

[]$ svn update fpc

As fontes de docs estão em um repositório separado, chamado fpcdocs, então, o comando para pegá-lo é

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

Se você necessita ler mais sobre subversion, leia este excelente Subversion book o qual está também disponível online em diferentes formatos livremente.

Para os curiosos: Você tem somente acesso de leitura,então não tente alterar nada :-)

Para maiores informações, veja no site FreePascal

Instalando o Lazarus no Windows

Binários FPC do Windows

Sem dúvida o modo mais fácil para adquirir uma instalação funcional de Free Pascal é baixar a última liberação dos binários do Lazarus para o Windows no SourceForge - a liberação contém as versões atuais do compilador do FreePascal e as bibliotecas de FreePascal como também o lazarus IDE. Se você quer instalar direto das fontes, vá em frente e siga lendo!

Você pode adquirir o instalador zipado para o fpc 2.0.0 na seção Free Pascal em http://www.freepascal.org/download.html, e então escolha um mirror). Instalando direto das fontes - -veja a próxima seção para saber os adquirir-- não é para novatos, desde que você precisa de um compilador é um bom começo

Fontes de FPC para Windows

<<<< Veja a seção sob FPC Sources para Linux onde o uso de SVN é descrito >>>>

O modo mais fácil para adquirir fontes Free Pascal é via CVS; veja a próxima seção para saber mais disso. Você também pode baixar como um pacote todo -- veja http://www.freepascal.org/develop.html para o visão diária da árvore de liberação 2.1.x.


Fontes Windows FPC por CVS ()

Você precisará ter um cliente de CVS como TortoiseCVS ou WinCVS instalado para executar os passos abaixo. Os comandos exatos variam entre clientes de CVS; os fornecidos abaixo são para serem usados com um cliente CVS, o qual esta disponível para download aqui.

Primeiramente crie um diretório no qual você deseja colocar os fontes. Qualquer usuário normal pode fazer isso. Crie um diretório para fpc (ex: C:\Source), então faça o seguinte na linha de comando:

 C:\Source> set CVSROOT=:pserver:cvs@cvs.freepascal.org:/FPC/CVS
 C:\Source> cvs login      // o password é 'cvs' sem as aspas
 C:\source> cvs -z3 co fpc // Isto criará um fpc de diretório que pode ser usado depois no IDE.

Dica: Para baixar/atualizar as mais recentes mudanças que você simplesmente pode fazer

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

Como: Escreva-me.

See: http://www.freepascal.org/down-win32.html . Você pode achar uma lista de mirrors em http://www.freepascal.org/sdown.html. Baixe o FPC como um grande arquivo, descompacte e execute o install.exe.

Estendendo sua variável de PATH ao diretório de fpc:

  • Win98: Edite autoexec.bat e adicione a linha: PATH=%PATH%;C:\pp\bin\bin\win32
  • WinXP/2k: Meu computador (clique direito) -> Propriedades -> Advanced (Page) -> Enviroment Variables -> System Variables -> Edit "PATH", Add "C:\pp\bin\bin\win32" aqui.

Reinicie o windows.

Como: Explicar como baixar as fontes fpc e contruir o compilador

Instalando o Free Pascal nos BSD manualmente

Efetivamente você precisa de:

Um arquivo com todos os fontes, ou dois, FPC e Lazarus.

1. Por exemplo, para o FPC ftp://ftp.freepascal.org/fpc/dist/Linux/separate/sources.tar , preferivelmente um export, sem CVS/ dirs. O arquivo acima falha nisso.

2. Fontes SnapShot do Lazarus.

  • Qualquer starting compiler a partir da versão 1.9. Você pode verificar analisando a saída de "ppc386 -i". Se for 1.9.3 até 2.0.x está bem.
  • Pacotes dependentes: para FreeBSD são gtk12, glib12, gdk_pixbuf, make GNU, iconv e gettext

Construção do FPC:

1. Pegar: os arquivos necessários: fontes do FPC, starting compiler.

2. Extrair: de-tgz para um diretório de trabalho.

3. Construir: vá para work/fpc/ e execute:

 $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. Instalar: de novo para work/fpc, execute:

$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/2.0.1/ppc386 $THEPREFIX/bin/ppc386
     install sourceinstall PREFIX=$THEPREFIX

5. Configurar: execute compiler/utils/samplecfg $THEPREFIX/lib/fpc/2.0.1 $ETCDIR.

6. Opcional: veja se "ppc38 -i" dá alguma saída, ou se dá algum aviso de que o usuário precisa adicionar $PREFIX/bin ao seu Path atual. Tente compilar um programa com -viwn e veja se isso dá algum erro.

Notas:

  • Se precisar das listas do pacote fpcmake, você precisa gerá-los ou supri-los você mesmo, in the port ou em um arquivo extra, faça uma instalação "falsa" de /tmp/pack e encontre os arquivos instalados pela busca de arquivos. >ll
  • $THEPREFIX e $ETCDIR devem ser configuráveis pelo usuário. Senão, instalações locais não são possíveis.
  • BSDHIER=1 em todos os comandos make força a hierarquia de convenções do BSD.

Installing Free Pascal under Mac OS X

You need the Apple Developer-tools, X11, gtk1.2:

Downloading packages and installing them properly can be a time consuming task. Therefore there are various package managers. One of them is fink:

Download fink from http://fink.sourceforge.net/download/index.php?phpLang=en; follow the install instructions.

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

http://developer.apple.com/.

Apple X11: On a fresh system: choose "Customize" in the install-dialogue, check "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.

Hint: 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

Then download and install the Free Pascal Compiler (at least 1.9.5 from 16th August 2004) from

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


For lazarus you need the fpc sources as well (obsolete: use svn): 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:

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

password is 'cvs' without the 'quotes'

[]$ 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

Instalando o Lazarus

Instalando Lazarus no Linux

Instalação usando RPMs

The easiest way to get a current working installation of Lazarus is to download the RPMs for FreePascal and Lazarus from the SourceForge repository.

You need to download the selected version of

  • o compilador (ex fpc-1.9.5-041207.i386.rpm)
  • the pascal source library (eg fpcsrc-1.9.5-041207.i386.rpm)
  • the Lazarus package (eg lazarus-0.9.2.4-fpc_1.9.5_041207.i386.rpm).

You then issue the following commands (you need to have root privileges - use su or 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

Instalação pelo fonte

Se você prefere instalar pelo fonte e compilar os arquivos você mesmo, siga essas instruções.

Porque o material inteiro do Lazarus está instalado em um único diretório, desinstalar é muito fácil e você não precisa ser o root para instalar o Lazarus. Você pode pegar os arquivos tgz para FPC, fpcsrc e Lazarus nas seções de download ou pode baixá-los diretamente por SVN.

Downloading Lazarus SVN

The lazarus repository has moved from cvs to svn (Subversion). SVN 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.

With the move we also changed the directory layout of the lazarus sources. The main difference is that all ide sources are moved from the root to a separate ide subdir. As anybody might understand, this has an impact on the Makefiles, the searchpaths etc. We are in progress of fixing things, so if something doesn't work, please let us know.

Now the most important thing.... getting the sources
 []$ svn checkout http://svn.freepascal.org/svn/lazarus/trunk/ lazarus

(or any other dir where you want to place your sources)

On subsequent occasions, to update simply type

 []$ svn update lazarus

For more information on Subversion, see: http://subversion.tigris.org/

Note: the CVS is still accessable, but it frozen. This means that no new updates are comitted.

Compiling and running

Whether you checkout from cvs or svn, the next step is:

compile lazarus
[]$ cd lazarus
[]$ make  (gmake on BSD)


If fpc is installed correctly, the compilation should work without problems. If not, see FAQ.

Start lazarus
[]$ ./lazarus

The IDE should start. If you started lazarus in a terminal, you can see some notes about missing settings. This is normal at first start. The IDE automatically tries to find out where the freepascal compiler and its sources are installed by searching in the most common directories.

Check the paths
Use the IDE menu to go to
Environment -> Environment Options -> Files

The 'FPC Source directory' should point to your fpc source directory. This directory normally ends with /fpc/ or /fpcsrc/ (e.g. /usr/src/fpcsrc or /home/username/freepascal/fpc) and contains directories like 'compiler', 'docs', 'fcl', 'rtl' and 'packages'.

ToDo: explain the other paths

Hint

To update lazarus you can use

[]$ svn update lazarus

then for either update pathway:

[]$ make clean all   (gmake on BSD)

This will rebuild lazarus and create an IDE without lazarus packages. To link your installed packages do after the above:

[]$ make idepkg

Installing Lazarus under Debian GNU/Linux

There are preliminary Debian packages for lazarus available for download. Make sure you read /usr/share/doc/lazarus/README.Debian carefully before you start using it. Feedback is needed and appreciated; please send your comments to Carlos Laviola <claviola@debian.org>.

Another (?easier) way to install Lazarus under Debian

Added by User:Kirkpatc.

Simple Lazarus Installation in Debian

(assume new Debian installation, without development libraries loaded)

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-2.0.0-0.i586.rpm
  • fpcsrc-2.0.0-0.i386.rpm
  • lazarus-0.9.8-fpc_2.0.0_0.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 install the generated Debian (.deb) packages by (as root):

dpkg -i fpc*.deb laz*.deb

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

Note, if you do not have alien type:

apt-get install alien

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/2.0.0 and then type

sh ./samplecfg /usr/lib/fpc/2.0.0 /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. Also make sure that there are no old configuration files in for example your home directory (~/.fpc.cfg).

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!

Installing Lazarus under Mac OS X

Works pretty much the same as under Linux. But you need to install first the apple developer tools and X11.

Snapshots are available at http://www.de.freepascal.org/lazarus/.

If you want to experiment and develop the carbon widgetset interface, look at Carbon Interface.

Installing Lazarus under Windows

The current releases of the Windows Lazarus binary packages install very easily, and should work 'out-of-the-box'.

It is even possible to install the whole Lazarus/FPC package on a portable USB drive (capacity at least 256 MB), for use in environments where you are not allowed to install software on your Windows workstation or where you haven't got administrator privileges. You do have to be a little careful about adjusting the paths in the compiler and environment options and the fpc.cfg file. It may also be necessary to keep the directory for test compilation on your portable drive. << 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? >>

The binary package is available for Linux and Windows from

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

Download the latest release (currently Lazarus-0.9.6-20050225-win32.exe) and launch the application. You will be taken through a typical Windows installation, in which the FPC compiler and source libraries are installed within the same directory structure as Lazarus, and the IDE should launch and operate without significant problems, provided you have uninstalled any previous version of Lazarus and/or FPC (often found in the C:\pp directory).

You can also get a Lazarus Snapshot for Windows at: http://www.de.freepascal.org/lazarus/

Installing from source

If you prefer to install from sources, then follow these instructions (Thanks to Joe for the initial Step-by-step description)

You have to download the lazarus source:

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

Then unzip it to c:\lazarus for example. 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).

Open a command line. Start->Run...>command or choose MS-DOS icon.

Type:

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

If you are lucky then you can type: lazarus.exe. The source editor, dialogs and the property editor work, but not perfectly... Look and you will see.

You can compile examples also:

cd examples
make

If you extracted lazarus to another drive, eg.: d:\lazarus. It can happen that you need the gnu utility to make it. If you have it, you can take its path to set path=...;<gmakepath> but it is simpler not to choose drive d:\

That's all.

Additional experiences and advice on installing FPC and 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.

Pitfalls that I have experienced in various attempts with SuSE linux include:

The rpm versions often install FPC in /bin or /usr/bin, with the libraries in /lib or /usr/lib.

If you perform a make install on a source version or use a .tar.gz, the compiler is usually installed in /usr/local/bin with the libraries in /usr/local/lib.

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.

Installing Lazarus under BSD

 Please write me!

Contribuições Originais e Mudanças

This page has been converted from the epikwiki version.

  • Iniciada a tradução para o português fititnt 20/11/2005
  • 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
  • Fixed broken link - 9 Oct 2005 User:Avantman42