Monday, October 11, 2010

Installing Lazarus on Ubuntu 10.10

We are back! Now the OPF was fully ported to Zeoslib (sqldb had some issues) and the Terminal de Consulta (Price Verifier) is being adapted. It's running on Linux machines for months now, it was a great field test. We started to use Ubuntu 10.10 here and today I made a clean install. Here's the steps to create a Lazarus development machine:
  1. Install Ubuntu 10.10 Desktop
  2. Install FPC 2.4.0 (with Synaptic or apt-get install fpc)
  3. Download FPC sources (I prefer the .tar.gz file) to $HOME
  4. Uncompress them (tar -xvzf fpc-2.4.0.source.tar.gz)
  5. Install SVN software (sudo apt-get install subversion)
  6. Get Lazarus (svn co lazarus)
  7. Build Lazarus with extra components (cd lazarus; make bigide)
If you need database connectivity, I suggest you use Zeoslib instead of the bundled sqldb component. Zeos is very mature and stable, to install it on Lazarus there are some extra steps:
  1. Get Zeos (svn checkout svn:// zeosdbo)
  2. Install Zeos (open zcomponent.lpk from Components/Open Package)
We also use Synapse library and ACBr components, both from SVN.


Anonymous said...

That's the hard way!
The easy one is:
- From Maverick, launch system / synaptic
- select lazarus
- Apply
- You're done, everything is there (including fpc 2.4.0..)

Alexsander said...

I use Lazarus from SVN because I'm a bug reporter.

pereirjo said...

good and thanks

Raul said...

Alexsander: I have tree machines whith differents ubuntu flavors (10.04 Lxde, 10.10 and 11.04). Lazarus/FPC were installed from official repos via synaptics. All of them report an "Oops debugger error state" when i try to run this simple code:
program project1;

{$mode objfpc}{$H+}

{ you can add units after this };

{$IFDEF WINDOWS}{$R project1.rc}{$ENDIF}


I'm a student. my wish is to run my delphi 7 classroom program on Linux.
What i'm doing wrong?

Alexsander said...

Raul, do NOT use the repos' versions, they are usually outdated. Follow the instructions from the post.