User:Dieselnutjob/Pinebook Pro/Freepascal and Lazarus IDE on Manjaro

From PINE64
< User:Dieselnutjob
Revision as of 11:46, 2 August 2020 by Dieselnutjob (talk | contribs) (Install Freepascal FPC3.20 and Lazarus IDE on Manjaro)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to install Freepascal FPC 3.20

Install binutils

sudo pacman -Syu binutils

Download fpc from here

Unpack and install

tar -xf fpc-3.2.0.aarch64-linux.tar
cd fpc-3.2.0.aarch64-linux
sudo sh

Test it:-

Use a test editor to create helloworld.pas

Program helloworld;
  writeln ('Hello world');

Compile and run it

fpc helloworld.pas 
Free Pascal Compiler version 3.2.0 [2020/06/05] for aarch64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Linux for AArch64
Compiling helloworld.pas
Assembling helloworld
Linking helloworld
4 lines compiled, 0.5 sec
Hello world