Hi Symon,
I would really suggest to use a Linux supported by SAP, this would be SLES or Readhed.
At least SLES you could get for free (no support).
https://www.suse.com/products/server/eval.html
If you do not use one of them you will run into the problems you are getting right now. There are scripts and binaries compiled in a different way, using different prameters than used in the install scripts which will cause thes problems.
I would suggest to do a fresh install using one of the supported distributions.
Best regards
Christian