How to add GDAL with ECW and MRsid support in Geoserver 2.26 in Ubuntu 20.04

I am trying to add GDAL with ECW and MrSid support into Geoserver 2.26 on Ubuntu 20.04. I tried many guides found on internet but nothing works so far.
I tried to build GDAL, and manage to do it. But geoserver doesn’t recognize it.
Can someone point me on the right direction?