Dig a hole adjacent to the building approximately half of the footprint of the building. The hole needs to be 2 feet deeper than the frost line (for temperate climates) and 2 feet into the geothermal zone (for volcanic areas).
Lay out the tubing along the bottom of the hole. The tubing should be run in either an 'S' shape for temperate climates or it can be run in parallel lines for volcanic areas. In either situation, parallel sections of tubing need to be 18 to 24 inches apart.
Connect the parallel lengths of tubing together with the tubing joints. Use L joints to make an "S" shape or use T joints for parallel lines. Either setup needs to have an input point and an output point.
Run tubing from the input and the output to the edge of the building. The tubing should be run at depth until it gets to the building, then run straight up to the entrance point on the building.
Seal the tubing to each joint using plumber's glue for PVC tubing or solder and blowtorch for metal tubing. The joints need to be watertight.