Difference between revisions of "Raspbian"

From Lazarus wiki
Jump to navigationJump to search
(Updating information on installing)
Line 2: Line 2:
 
'''Raspbian''' (aka Wheezy) is a free operating system based on the [[Debian]] [[Linux]] distribution optimized for the [[Raspberry Pi]] hardware. Current versions of Raspbian support both [[Free Pascal]] and [[Lazarus]].
 
'''Raspbian''' (aka Wheezy) is a free operating system based on the [[Debian]] [[Linux]] distribution optimized for the [[Raspberry Pi]] hardware. Current versions of Raspbian support both [[Free Pascal]] and [[Lazarus]].
  
==Installing Free Pascal==
+
== Installing Lazarus and Free Pascal ==
  
 +
=== Graphical Installer on modern versions of Raspbian ===
 +
 +
On modern versions of Raspbian installation is very easy. It can be performed with the PiPackage manager. You have to select simply "Add / Remove Software" in the global Preferences menu.
 +
 +
<gallery>
 +
Installing FPC on Raspbian Stretch.jpeg|Step 1: Install Free Pascal with PiPackage.
 +
Installing Lazarus on Raspbian Stretch.jpeg|Step 2: Install Lazarus
 +
Running Lazarus from the "Programming" menu on Raspbian Stretch.jpeg|Lazarus is now available in the global "Programming" menu
 +
Lazarus 1 6 on Raspbian Stretch.jpg|A simple session with Lazarus on Raspbian Stretch.
 +
</gallery>
 +
 +
== Installing via the command shell on older versions of Raspbian ==
 +
 +
=== Installing Free Pascal ===
 
Free Pascal is easily installed with the following shell commands:
 
Free Pascal is easily installed with the following shell commands:
  
Line 18: Line 32:
 
* via Lazarus, see below
 
* via Lazarus, see below
  
==Installing Lazarus==
+
=== Installing Lazarus ===
  
 
The steps to install Lazarus are very similar to those required for installing Free Pascal:
 
The steps to install Lazarus are very similar to those required for installing Free Pascal:

Revision as of 23:34, 15 May 2019

Raspberry Pi Logo.png

This article applies to Raspberry Pi only.

See also: Multiplatform Programming Guide

Raspbian (aka Wheezy) is a free operating system based on the Debian Linux distribution optimized for the Raspberry Pi hardware. Current versions of Raspbian support both Free Pascal and Lazarus.

Installing Lazarus and Free Pascal

Graphical Installer on modern versions of Raspbian

On modern versions of Raspbian installation is very easy. It can be performed with the PiPackage manager. You have to select simply "Add / Remove Software" in the global Preferences menu.

Installing via the command shell on older versions of Raspbian

Installing Free Pascal

Free Pascal is easily installed with the following shell commands:

  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get install fpc

There are three modes to use Free Pascal on Raspbian:

  • via the shell command fpc. This requires to enter a number of options along with the fpc command.
  • via the shell command fp. This command starts a text-based IDE.
  • via Lazarus, see below

Installing Lazarus

The steps to install Lazarus are very similar to those required for installing Free Pascal:

  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get install fpc
  sudo apt-get install lazarus

This installs a ready-to-use precompiled version of Lazarus, however not necessarily the newest one.

Compiling from sources

The newest versions of Lazarus are distributed as source code. In order to compile Lazarus from subversion sources see Michell Computing: Lazarus on the Raspberry Pi for details. The information there is somewhat outdated but still usable.

The easiest way to compile from source is to use fpcup . See also fpcup in this wiki.

Screenshots

Hardware access

See Lazarus on Raspberry Pi for details.

External Links