Openemr ubuntu installation

how i fix this error (Fatal error : Cannot declare class Cpdf, because the name is already in use in /opt/lampp/lib/php/Cpdf.php on line 19)

How are you trying to install OpenEMR. Maybe give docker a try: