The raspberry Pi2, introduced in February 2015, cannot be installed Lazarus with the previous method, and when installing the FPC, the following problem stops the installation.
Find a solution from http://otapi.com/2015/02/10/raspberry-pi-2-freepascal-lazarus-and-delphi/:
1. Installing Subversion and unzip
Sudo apt-get Update
Sudo Apt-get Install Subversion UNIZP
2. get and compile the latest freepascal compiler
Sudo MKDIR/USR/LOCAL/FPC
Cd/usr/local/fpc
Sudo Wget-o fpc-2.6.4.arm-linux.tar?http://sourceforge.net/projects/freepascal/files/linux/2.6.4/ Fpc-2.6.4.arm-linux.tar/download
Sudo Tar xvf Fpc-2.6.4.arm-linux.tar
CD Fpc-2.6.4.arm-linux
Sudo./install.sh
When prompted to install the following, enter? After the content
Install prefix (/usr or/usr/local)? /usr/local
Install textmode IDE (y/n)? y
Install FCL (y/n)? y
Install Packages (y/n)? y
Install documentation (y/n)? y
Install Demo (y/n)? y
Download the latest version of FPC:
Cd/usr/local/fpc
Sudo SVN Co. http://svn.freepascal.org/svn/fpc/trunktrunk
Sudo SVN export--force trunk trunktmp
CD trunktmp
Compiling the FPC:
Sudo make all OPT=-DFPC_ARMHF
Sudo make install OPT=-DFPC_ARMHF prefix=/usr/local
Sudo make install Sourceinstall opt=-dfpc_armhfprefix=/usr/local
Cd/usr/local/lib/fpc
Ls
You should see the version number of the latest version in Terminal :
2.6.4 3.1.1
Replace the following 3.1.1 with the latest version number (now the latest version number is 3.1.1)
Sudo rm-f "/usr/local/bin/ppcarm"
Sudo ln-sf "/usr/local/lib/fpc/3.1.1/ppcarm" "/usr/local/bin/ppcarm"
3. compiling and installing the latest lazarusversion
Sudo apt-get Update
Sudo apt-get Install Libx11-dev libgdk-pixbuf2.0-devlibcairo2-dev lpango-1.0 Libpangox-1.0-dev Xorg-dev
Sudo Aptitude Install Libgtk2.0-dev Libgdk-pixbuf2.0-devlibpango1.0-dev
Sudo Mkdir/usr/local/lazarus
Cd/usr/local/lazarus
Sudo SVN Co http://svn.freepascal.org/svn/lazarus/trunktrunk
Sudo SVN export--force trunk trunktmp
CD trunktmp
Sudo make all OPT=-DFPC_ARMHF
Sudo make install OPT=-DFPC_ARMHF prefix=/usr/local
4. The final setting:
When you first Launchlazarus, it's ' ll ask for the path to the FPC sources. Enter/usr/local/fpc/trunk then your ' re ready to go!
After up to 3 hours of installation, Lazarus is finally installed.
When you start Lazarus for the first time, ask to set fpcsources, enter /usr/local/fpc/trunk
Post-compilation program run Condition:
Raspberry Pi 2 Installs the latest version of the FPC and Lazarus 1.5