Difference between revisions of "Install on Ubuntu 11.10"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
 
==In general==
 
==In general==
===Install these===
+
===Overview===
To install Lazarus you need to install 3 things:  
+
To install Lazarus will install 3 things:  
 
*fpc -the Free Pascal compiler
 
*fpc -the Free Pascal compiler
 
*fpc-src -the source code for Free Pascal
 
*fpc-src -the source code for Free Pascal
 
*Lazarus -the IDE for Free Pascal
 
*Lazarus -the IDE for Free Pascal
 
===Versions===
 
===Versions===
You also need to install the correct version of Free Pascal for the version of Lazarus you choose.
+
You also need to install the correct version of Free Pascal for the version of Lazarus you choose. The versions below are correct.
 
==Ubuntu 11.10 Oneiric Ocelot==
 
==Ubuntu 11.10 Oneiric Ocelot==
The version in the repository (20/02/12) is
+
The correct versions of Lazarus and Free Pascal are in the repository (20/02/12). They are
 
*Lazarus 0.9.30-2.
 
*Lazarus 0.9.30-2.
 
*Free Pascal 2.4.4
 
*Free Pascal 2.4.4
In Synaptic it is called Lazarus 0.9.30-2Build1.
+
In Synaptic this Lazarus is called Lazarus 0.9.30-2Build1.
===Find and install the following 3 packages===
+
===Find and install the packages===
In the software Centre search for
+
In the Software Centre search for
 
*IDE for FreePascal (SDK metapackage)
 
*IDE for FreePascal (SDK metapackage)
 
*Free Pascal Compiler fpc
 
*Free Pascal Compiler fpc
 
*Free Pascal source code
 
*Free Pascal source code
With Synaptic I would install everything beginning with Laz, fpc or fp.
+
With Synaptic, install everything beginning with Laz, fpc or fp.
  
 
===Problem 1===
 
===Problem 1===
Once you have installed Lazarus, it will not work. When you try to compile a blank form project you will get this error message:
+
Once you have installed Lazarus, it will not work. When you try to compile a blank form project (having first saved it) you will get this error message:
 +
 
 
===Solution: Remove the Ubuntu taskbar menu and scrollbars===
 
===Solution: Remove the Ubuntu taskbar menu and scrollbars===
 
*Remove the taskbar
 
*Remove the taskbar
Line 26: Line 27:
 
  sudo
 
  sudo
 
Give your password
 
Give your password
These can be re-installed if you need it with
+
These can be re-installed if needed with
  
 
*Remove the Ubuntu overlay scrollbars
 
*Remove the Ubuntu overlay scrollbars
Line 33: Line 34:
 
Uninstall the packages
 
Uninstall the packages
  
These can be re-installed if you need them
+
These can be re-installed if needed with
  
 
===Problem 2===
 
===Problem 2===

Revision as of 17:15, 22 February 2012

In general

Overview

To install Lazarus will install 3 things:

  • fpc -the Free Pascal compiler
  • fpc-src -the source code for Free Pascal
  • Lazarus -the IDE for Free Pascal

Versions

You also need to install the correct version of Free Pascal for the version of Lazarus you choose. The versions below are correct.

Ubuntu 11.10 Oneiric Ocelot

The correct versions of Lazarus and Free Pascal are in the repository (20/02/12). They are

  • Lazarus 0.9.30-2.
  • Free Pascal 2.4.4

In Synaptic this Lazarus is called Lazarus 0.9.30-2Build1.

Find and install the packages

In the Software Centre search for

  • IDE for FreePascal (SDK metapackage)
  • Free Pascal Compiler fpc
  • Free Pascal source code

With Synaptic, install everything beginning with Laz, fpc or fp.

Problem 1

Once you have installed Lazarus, it will not work. When you try to compile a blank form project (having first saved it) you will get this error message:

Solution: Remove the Ubuntu taskbar menu and scrollbars

  • Remove the taskbar

Open a terminal and try

sudo

Give your password These can be re-installed if needed with

  • Remove the Ubuntu overlay scrollbars

Open synaptioc Search for Uninstall the packages

These can be re-installed if needed with

Problem 2

You will get the error message

Can't find class Classes

or

Can't find class sysutils

Solution: Reconfigure Lazarus as sudo

This can only be solved if you open Lazarus as sudo.

  • Scan the Pascal source code

Open a terminal and start Lazarus as sudo

gksudo StartLazarus

Give your sudo password In Lazarus choose Environment/Rescan FPC source directory

  • Rebuild Lazarus.

Open a terminal

gksudo StartLazarus

Give your sudo password In Lazarus choose Tools/BuildLazarus with profile:Build all