Usually there's no need to build userver itself. Refer to Configure, Build and Install section to make a service from a template and build it. If there's a strong need to build the userver and run its tests, then:
Download and extract the latest release from https://github.com/userver-framework/userver
Install the build dependencies
Alternatively you could use a docker container with all the building dependencies installed from Docker.
Build userver:
ulimit -n 4096 && ctest -V
If you need to edit or make your own docker image with custom configuration, read about it at scripts/docker/Readme.md
.