I think it was an issue with setting paths correctly so that CESM could find what it needed. I don't know what hardware or operating system you are using but I have to set a lot of paths manually (which I just put into a csh run script). My statements look like these:
source /SPG_ops/utils/CERES/TOOLKIT/scf_toolkit5.2.20v1-x86_64/environment.csh
setenv PATH "/homedir/tecaldwe/openmpi/bin:${PATH}"
setenv CFLAGS "-I/homedir/tecaldwe/openmpi/include ${CFLAGS}"
setenv LDFLAGS "-L/homedir/tecaldwe/openmpi/lib ${LDFLAGS}"
setenv LD_LIBRARY_PATH "/homedir/tecaldwe/openmpi/lib:${LD_LIBRARY_PATH}"
rehash
setenv NETCDF_PATH /SPG_ops/utils/CERES/TOOLKIT/scf_toolkit5.2.20v1-x86_64
setenv LDFLAGS "-L/SPG_ops/utils/CERES/TOOLKIT/scf_toolkit5.2.20v1-x86_64/lib -lhdf5_hl -lhdf5 -lhdf5hl_fortran -lhdf5_fortran -lz -lsz -ldl -L/homedir/tecaldwe/lapack/src/lapack-3.10.0 -llapack -lrefblas"
setenv TMPDIR /CERES/sarb/caldwell/CESM2.2/cime/scripts/tmp
I'm not sure exactly which paths are your problem but it seems like your CESM can't find what it needs for the build. Hence, the "Can't locate" errors. You might need to ask your sys admins for the correct paths to Perl libraries and such also to use for building your case.