[Dev] Installation de FreePascal

Installation de FreePascal.

1) Répertoire de travail :

[~] ➔ sudo mkdir /usr/local/fpc
[~] ➔ cd /usr/local/fpc

2) Téléchargement du compilateur :

[/usr/local/fpc] ➔ sudo wget http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.arm-linux.tar

3) Décompression de l’archive :

[/usr/local/fpc] ➔ sudo tar xvf fpc-2.6.4.arm-linux.tar
[/usr/local/fpc] ➔ cd fpc-2.6.4.arm-linux
[/usr/local/fpc/fpc-2.6.4.arm-linux] ➔ 

4) Installation :

[/usr/local/fpc/fpc-2.6.4.arm-linux] ➔ sudo ./install.sh

– Modifier le préfix d’installation :

Install prefix : /usr/local

5) Vérification :

[/usr/local/fpc/fpc-2.6.4.arm-linux] ➔ fpc -version
[0.031] Free Pascal Compiler version 2.6.4 [2014/03/21] for arm
[0.031] Copyright (c) 1993-2014 by Florian Klaempfl and others
[0.031] No source file name in command line
[0.031] Compilation aborted
Error: /usr/local/bin/ppcarm returned an error exitcode (normal if you did not specify a source file to be compiled)

6) Lien :

http://otapi.com/2015/02/10/raspberry-pi-2-freepascal-lazarus-and-delphi/