Ubuntu PHP OAuth

Warning: Use of undefined constant OAUTH_REQENGINE_CURL

On an Ubuntu server (Ubuntu 20.04.2 LTS) when running a PHP script, I get the following error. On checking phpinfo,