It depends on your environment. Some distros don’t have this extension available. You can review PHP documentation or research online on how to install it for your specific environment.
Also, this thread is very old. Next time find a more recent one or open your own thread.