How to enable webp support in php GD library

how to enable webp support (Centos OS 7)

Fatal error: Call to undefined function imagewebp();

php -r ‘var_dump(gd_info());’
array(12) {
[“GD Version”]=>
string(26) “bundled (2.1.0 compatible)”
[“FreeType Support”]=>
bool(true)
[“FreeType Linkage”]=>
string(13) “with freetype”
[“GIF Read Support”]=>
bool(true)
[“GIF Create Support”]=>
bool(true)
[“JPEG Support”]=>
bool(true)
[“PNG Support”]=>
bool(true)
[“WBMP Support”]=>
bool(true)
[“XPM Support”]=>
bool(false)
[“XBM Support”]=>
bool(true)
[“WebP Support”]=>
bool(false)
[“JIS-mapped Japanese Font Support”]=>
bool(false)
}

have tried myself and will not work, tested without OLS and worked straight away.