lazarus (free pascal delphi like ide) on ubuntu (amd64)
Download x86-64 (or i386) free pascal binary package from sf.net
http://prdownloads.sourceforge.net/freepascal/fpc-2.0.0.x86_64-linux.tar?download
tar -xvf fpc-2.0.0.x86_64-linux.tar
sudo sh install.sh
I have installed it in /opt/fpc and answered Yes/[ENTER] to all questions
If all ok then you can get compiler version this way
/opt/fpc/bin/fpc -i
Free Pascal Compiler version 2.0.0
Compiler Date : 2005/05/15
Compiler CPU Target: x86_64
Supported targets:
Linux for x86-64
FreeBSD for x86-64
Supported CPU instruction sets:
ATHLON64
Supported FPU instruction sets:
SSE64
add /opt/fpt/bin in $PATH
vi ~/.bash_profile
#FPC PATH
if [ -d /opt/fpc/bin ] ; then
PATH=/opt/fpc/bin:"${PATH}"
fi
You need to install the development packages of the GTK and pixbuf libraries, so
sudo apt-get install libgtk2.0-dev
sudo apt-get install libgdk-pixbuf-dev
cd opt
Download lazarus package
http://prdownloads.sourceforge.net/lazarus/lazarus-0.9.10-0.tar.gz?download
tar -zxvf lazarus-0.9.10-0.tar.gz
cd lazarus
make
./lazarus
It should look like this
sudo apt-get install libgpmg1-dev (needed by fpc console ide) Next download Free Pascal Compiler Source (2.0.2) from http://prdownloads.sourceforge.net/freepascal/fpc-2.0.2.source.tar.gz?download
tar -zxvf fpc-2.0.2.source.tar.gz
cd fpc
vi Makefile
and replace this line
INSTALL_PREFIX=/usr/local with
INSTALL_PREFIX=/opt/fpc
make build
make install