Is it possible to install cross compiler on Raspbian? I mean arm-linux-gcc. I would like to try compile cross platform project on Raspbian instead of on virtual machine with Ubuntu.
Is it possible to install cross compiler on rasbian? I mean arm-linux-gcc.
This does not make sense, particularly if you are using an ARMv7 Ubuntu distro.
"Cross-compiling" refers to compiling for one architecture (such as ARMv7) on a platform with a different architecture (such as x86-64, which is probably what your normal computer is).
If you want to compile code for a given platform on that platform, you are not cross-compiling, you are just compiling.
arm-linux-gcc cross-compiler available on most mainstream linux distros targets ARMv7. However, if you are running on an ARMv7 platform already, all you need is the normal compiler. In other words:
apt install gcc
You now have an ARMv7 compiler installed. If you wish to compile code for the pi on the pi, that's what you should use, just the same as you would normally anywhere else.