When building Couchbase from the Source code you need to download the source code or use the Source Repositories.
Once downloaded you will need to set up a suitable environment on your machine and build. There are instructions available for each of the major platforms below: