I found this wiki page
https://wiki.freepascal.org/Installing_Lazarus_on_Linux#Required_Linux_packagesand installed packages mentioned there:
According to forum member "MarkMLl", required Debian packages for Lazarus are:
build-essential
gdb (see below)
libgpm-dev (formerly libgpmg1-dev)
libncurses5-dev
libncursesw5-dev
I got many missing libs in IDE on linking. Found more libs are needed. Wrote it to the wiki:
According to forum member "AlexTP", required packages on Ubuntu for GTK2 are:
libx11-dev
libcairo2-dev
libgdk-pixbuf-2.0-dev
libpango1.0-dev
libatk1.0-dev
Still i get 2 errors from linker:
Warning: linker: /usr/bin/ld: cannot find -lgdk-x11-2.0: No such file or directory
Warning: linker: /usr/bin/ld: cannot find -lgtk-x11-2.0: No such file or directory
What OS packages are these???