Getting errors after fresh install

I am getting the following errors when attempting this command:
soffice --headless --convert-to pdf sample.doc --outdir /tmp
/opt/libreoffice6.2/program/soffice.bin: /lib64/ no version information available (required by /opt/libreoffice6.2/program/

/opt/libreoffice6.2/program/soffice.bin: symbol lookup error: /opt/libreoffice6.2/program/ undefined symbol: cairo_surface_get_device_scale

OS is Amazon Linux (Centos)
I am using Libreoffice’s latest version

I am getting same error, still not getting any answer for my blog so who will answer here? need help badly, someone comes here and rescues it.