Follow the instructions and install libudunits2-dev in your system, running this command from Linux console would do the job
sudo apt install libudunits2-dev
Then you can install your package in R BiocManager::install("clusterProfiler", version = "3.8")