Installing Free Pascal in Ubuntu 12.04

Here i’ll show you to install free pascal in ubuntu 12.04.

Step 1: You need to Install free pascal compiler and IDE, run:

(for doing this you need internet connection)

$ sudo apt-get fp-compiler fp-ide

$ sudo apt-get fp-compiler fp-ide

press enter then type your root password. Wait till the installation is done.

Step 2: Check whether free pascal is installed properly or not, run:

$ fpc

Press enter. If you get this:

Free Pascal Compiler version 2.4.4-3.1 [2012/01/04] for i386
 Copyright (c) 1993-2010 by Florian Klaempfl
 /usr/lib/fpc/2.4.4/ppc386 [options] <inputfile> [options]
 Put + after a boolean switch option to enable it, - to disable it
 -a The compiler doesn't delete the generated assembler file
 -al List sourcecode lines in assembler file
 -an List node info in assembler file
 -ap Use pipes instead of creating temporary assembler files
 -ar List register allocation/release info in assembler file
 -at List temp allocation/release info in assembler file
 -A<x> Output format:
 -Adefault Use default assembler
 -Aas Assemble using GNU AS
 -Anasmcoff COFF (Go32v2) file using Nasm
 -Anasmelf ELF32 (Linux) file using Nasm
 -Anasmwin32Win32 object file using Nasm
 -AnasmwdosxWin32/WDOSX object file using Nasm
 -Awasm Obj file using Wasm (Watcom)
 -Anasmobj Obj file using Nasm
 -Amasm Obj file using Masm (Microsoft)
 -Atasm Obj file using Tasm (Borland)
 -Aelf ELF (Linux) using internal writer
 *** press enter ***

it means free pascal has been installed in your ubuntu 12.04. Now you can use free pascal.

To open free pascal’s blue editor , run:

$ fpc-2.4.4

$ fpc-2.4.4

Press enter then your terminal will turn into free pascal’s blue editor.

free pascal’s blue editor

Coll beans!!! Enjoy codingšŸ˜€

3 thoughts on “Installing Free Pascal in Ubuntu 12.04

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s