gzuncompress() is a built-in PHP function and part of the ZLib extension. Moodle checks for that extension when it installs or upgrades, so you shouldn't have been able to install Moodle without it.
You need to fix your PHP to include that extension. How you do that depends on how PHP was installed in the first place.
You need to fix your PHP to include that extension. How you do that depends on how PHP was installed in the first place.