I have a working version now
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fpc
sudo apt-get install fpc-source
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lazarus
don't forget to install sudo apt-get install fpc-source otherwise lazarus will complain source is missing.
# apt-get install subversion
# svn export
http://svn.freepascal.org/svn/lazarus/trunk/components/leakview/leakview.lpk --revision 47172
# mv leakview.lpk /usr/lib/lazarus/1.2.4/components/leakview/
# svn export
http://svn.freepascal.org/svn/lazarus/trunk/components/leakview/dbginforeader.pas --revision 47172
# mv dbginforeader.pas /usr/lib/lazarus/1.2.4/components/leakview/
Now Lazarus should work, but the IDE may complain about a broken ide/version.inc
In this case, just look at the title bar and edit /usr/lib/lazarus/1.2.4/ide/version.inc (I edited mine from '1.2.4+dfsg-1' to '1.2.4+dfsg-1+b1')
Restart Lazarus and everything should work!
The Raspberry Pi doesn't have enough memory to recompile the whole IDE, so you need to add a swap
Take an empty USB memory (at least 1GB) and insert it in the Raspberry Pi
$ df
Find which /dev it is (for me it was /dev/sda1)
WARNING: THIS WILL DELETE EVERY FILE ON YOUR USB MEMORY
$ sudo umount /dev/sda1
$ sudo mkswap /dev/sda1
$ sudo swapon /dev/sda1
Now you have a good amount of swap memory; you can check it with
$ cat /proc/swaps
Now start the IDE with root permissions
$ gksudo lazarus-ide
Uninstall package tachartfpvectorial 1.0 in lazarus when you see the IDE
for me this resolve the problem.
I still have package errors after uninstall when I try to rebuild the IDE maybe somebody can help me with this??
Till now this is better than nothing