Assume you have all of the knowledge necessary to do so (as well as to refine all of the raw materials and create all intermediate tools required), as well as every raw material required for parts and tools in its most basic natural form.
Build a generator too then.