Oddly (unless you're running Windows) checking php.ini or recompiling PHP are very unlikely to be the solution.
It should be a simple matter of installing the missing module but how depends on your operating system and how PHP was installed in the first place.
It should be a simple matter of installing the missing module but how depends on your operating system and how PHP was installed in the first place.