Free Pascal on RPi
Free Pascal is a professional but free 32 bit / 64 bit compiler for Pascal and ObjectPascal. The Raspberry Pi system is supported with Raspbian OS.
Simple installation
In the Raspbian distribution Free Pascal is easily installed with the following shell commands:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fpc
You might also want to install Lazarus, a graphical IDE.
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 thefpc
command. - via the shell command
fp
. This command starts a text-based IDE (see screenshot). - via Lazarus, a very comfortable IDE
See also
External links
- Official Free Pascal site
- Lazarus portal
- Tutorial in the Lazarus wiki (i/o code examples also apply to pure Free Pascal)
- maketecheasier: Writing Pascal Programs on a Raspberry Pi Using FPC
|